diff options
-rw-r--r-- | libbb/time.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/time.c b/libbb/time.c index aa19a47d4..82e6cb172 100644 --- a/libbb/time.c +++ b/libbb/time.c | |||
@@ -186,6 +186,7 @@ void FAST_FUNC parse_datestr(const char *date_str, struct tm *ptm) | |||
186 | } else { | 186 | } else { |
187 | bb_error_msg_and_die(bb_msg_invalid_date, date_str); | 187 | bb_error_msg_and_die(bb_msg_invalid_date, date_str); |
188 | } | 188 | } |
189 | ptm->tm_sec = 0; /* assume zero if [.SS] is not given */ | ||
189 | if (end == '.') { | 190 | if (end == '.') { |
190 | /* xxx.SS */ | 191 | /* xxx.SS */ |
191 | if (sscanf(strchr(date_str, '.') + 1, "%u%c", | 192 | if (sscanf(strchr(date_str, '.') + 1, "%u%c", |