From a25f2023916cf86dca8a1dc89df5518dcbefa11a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 27 Jan 1999 09:57:05 +0000 Subject: Update. * time/strptime.c (strptime_internal, case 's'): Initialize secs to zero. Patch by Bruce Elliott . 1999-01-27 Andreas Schwab * elf/Makefile (extra-objs): Add test modules objects. 1999-01-27 Ulrich Drepper --- time/strptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'time') diff --git a/time/strptime.c b/time/strptime.c index f4b954d..26f77eb 100644 --- a/time/strptime.c +++ b/time/strptime.c @@ -1,5 +1,5 @@ /* Convert a string representation of time to a time value. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -537,7 +537,7 @@ strptime_internal (buf, format, tm, decided) the `get_number' macro. Instead read the number character for character and construct the result while doing this. */ - time_t secs; + time_t secs = 0; if (*rp < '0' || *rp > '9') /* We need at least one digit. */ return NULL; -- cgit v1.1