From 4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 12 Jul 2016 15:11:01 +0200 Subject: blaze822: default to 0 seconds when none given --- blaze822.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blaze822.c') diff --git a/blaze822.c b/blaze822.c index f6b9130..7c8821e 100644 --- a/blaze822.c +++ b/blaze822.c @@ -119,6 +119,8 @@ blaze822_date(char *s) { if (*s++ == ':') { if ((c = parse_posint(&s, 0, 61)) < 0) goto fail; tm.tm_sec = c; + } else { + tm.tm_sec = 0; } while (iswsp(*s)) -- cgit 1.4.1