Author: bapt Date: Sat Nov 26 15:49:59 2016 New Revision: 309194 URL: https://svnweb.freebsd.org/changeset/base/309194
Log: initialize *nextp which could be left uninitialized in case the configuration file cannot be open/read Reported by: Coverity via cem MFC after: 2 days CID: 1365665 Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Sat Nov 26 15:01:35 2016 (r309193) +++ head/usr.sbin/syslogd/syslogd.c Sat Nov 26 15:49:59 2016 (r309194) @@ -1835,6 +1835,7 @@ init(int signo) free((char *)f); } Files = NULL; + *nextp = NULL; /* open the configuration file */ if ((cf = fopen(ConfFile, "r")) == NULL) { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"