From 657cc63108993c8b5a8eb69ebba5a708022a786a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 May 2021 06:21:56 -0500 Subject: xparsedate should ignore trailing + or - (does not change timezone) --- lib/xwrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/xwrap.c b/lib/xwrap.c index 7e5e1500..a58707cc 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -1042,7 +1042,7 @@ void xparsedate(char *str, time_t *t, unsigned *nano, int endian) while (isspace(*p)) p++; if (*p && strchr("Z+-", *p)) { unsigned uu[3] = {0}, n = 0, nn = 0; - char *tz, sign = *p++; + char *tz = 0, sign = *p++; if (sign == 'Z') tz = "UTC0"; else if (0