MFC r257600:
Initialize the struct tm before handing it to strptime(3).
This commit is contained in:
parent
b7969843d1
commit
2a0c06b067
@ -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) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user