MFC r257600:

Initialize the struct tm before handing it to strptime(3).
This commit is contained in:
markj 2014-02-13 04:54:47 +00:00
parent b7969843d1
commit 2a0c06b067

View File

@ -1491,6 +1491,7 @@ validate_old_timelog(int fd, const struct dirent *dp, const char *logfname,
&dp->d_name[logfname_len]);
return (0);
}
memset(tm, 0, sizeof(*tm));
if ((s = strptime(&dp->d_name[logfname_len + 1],
timefnamefmt, tm)) == NULL) {
/*