Author: asomers
Date: Wed May 31 14:53:50 2017
New Revision: 319336
URL: https://svnweb.freebsd.org/changeset/base/319336

Log:
  Fix uninitialized variable in bootparamd.c
  
  Restore line that was accidentally deleted in change 318790
  
  Reported by:  Coverity
  CID:          1375855
  MFC after:    1 week
  X-MFC-With:   318790
  Sponsored by: Spectra Logic Corp

Modified:
  head/usr.sbin/bootparamd/bootparamd/bootparamd.c

Modified: head/usr.sbin/bootparamd/bootparamd/bootparamd.c
==============================================================================
--- head/usr.sbin/bootparamd/bootparamd/bootparamd.c    Wed May 31 13:44:54 
2017        (r319335)
+++ head/usr.sbin/bootparamd/bootparamd/bootparamd.c    Wed May 31 14:53:50 
2017        (r319336)
@@ -254,6 +254,7 @@ int blen;
      info of the file */
 
   if (match) {
+    fid_len = strlen(fileid);
 #define AS_FORMAT(d)   "%" #d "s"
 #define REXPAND(d) AS_FORMAT(d)        /* Force another preprocessor expansion 
*/
     while ( ! res && (fscanf(bpf, REXPAND(INFOLEN), info)) > 0) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to