Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 14:53:50 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319336 - head/usr.sbin/bootparamd/bootparamd
Message-ID:  <201705311453.v4VEroTW081899@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705311453.v4VEroTW081899>