summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-11-03 04:16:19 +0000
committerJacob Moody <moody@posixcafe.org>2022-11-03 04:16:19 +0000
commitaebe358a44762b266e54e5e6529e3b0efbb530e8 (patch)
treeb69097e784a14ca719c8aed52615855dd94dc268
parent479a31ae8f4a361b101aa203aa1c0822137708d7 (diff)
libc: address kencc warning in date.c
-rw-r--r--sys/src/libc/port/date.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/libc/port/date.c b/sys/src/libc/port/date.c
index cf532cb8e..10a386870 100644
--- a/sys/src/libc/port/date.c
+++ b/sys/src/libc/port/date.c
@@ -628,6 +628,7 @@ tmparse(Tm *tm, char *fmt, char *str, Tzone *tz, char **ep)
zoned = 0;
zparsed = nil;
sloppy = 0;
+ c0 = -1;
/* Default all fields */
tmtime(tm, 0, nil);
if(*p == '~'){