svn commit: r261821 - stable/9/usr.sbin/newsyslog
Mark Johnston
markj at FreeBSD.org
Thu Feb 13 04:55:19 UTC 2014
Author: markj
Date: Thu Feb 13 04:55:18 2014
New Revision: 261821
URL: http://svnweb.freebsd.org/changeset/base/261821
Log:
MFC r257600:
Initialize the struct tm before handing it to strptime(3).
Modified:
stable/9/usr.sbin/newsyslog/newsyslog.c
Directory Properties:
stable/9/usr.sbin/newsyslog/ (props changed)
Modified: stable/9/usr.sbin/newsyslog/newsyslog.c
==============================================================================
--- stable/9/usr.sbin/newsyslog/newsyslog.c Thu Feb 13 04:54:47 2014 (r261820)
+++ stable/9/usr.sbin/newsyslog/newsyslog.c Thu Feb 13 04:55:18 2014 (r261821)
@@ -1489,6 +1489,7 @@ validate_old_timelog(int fd, const struc
&dp->d_name[logfname_len]);
return (0);
}
+ memset(tm, 0, sizeof(*tm));
if ((s = strptime(&dp->d_name[logfname_len + 1],
timefnamefmt, tm)) == NULL) {
/*
More information about the svn-src-stable-9
mailing list