From: Ulrich Drepper Date: Tue, 17 Jul 2001 18:07:32 +0000 (+0000) Subject: (__getdate_r): Initialize tm_isdst, tm_gmtoff and tm_zone before calling strptime. X-Git-Tag: cvs/glibc-2_2_4~214 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e84ba51a3b64fae0f0733a035cedf827627be06e;p=thirdparty%2Fglibc.git (__getdate_r): Initialize tm_isdst, tm_gmtoff and tm_zone before calling strptime. --- diff --git a/time/getdate.c b/time/getdate.c index 8ed293cd5f3..8c9d16f8337 100644 --- a/time/getdate.c +++ b/time/getdate.c @@ -151,6 +151,9 @@ __getdate_r (const char *string, struct tm *tp) /* Do the conversion. */ tp->tm_year = tp->tm_mon = tp->tm_mday = tp->tm_wday = INT_MIN; tp->tm_hour = tp->tm_sec = tp->tm_min = INT_MIN; + tp->tm_isdst = -1; + tp->tm_gmtoff = 0; + tp->tm_zone = NULL; result = strptime (string, line, tp); if (result && *result == '\0') break;