about summary refs log tree commit diff
path: root/blaze822.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-12 15:11:01 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-12 15:11:01 +0200
commit4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67 (patch)
tree412c57f4bcf1eb2a085e891cb5d5a2afc03dc539 /blaze822.c
parent44f781db44ea256e4824cfe86c5882055a3f6200 (diff)
downloadmblaze-4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67.tar.gz
mblaze-4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67.tar.xz
mblaze-4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67.zip
blaze822: default to 0 seconds when none given
Diffstat (limited to 'blaze822.c')
-rw-r--r--blaze822.c2
1 files changed, 2 insertions, 0 deletions
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))