summaryrefslogtreecommitdiff
path: root/time/strptime.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-27 09:57:05 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-27 09:57:05 +0000
commita25f2023916cf86dca8a1dc89df5518dcbefa11a (patch)
tree6d8cc5468b28fbc3637f2e6cfed842c984cc663e /time/strptime.c
parent8c474db54dbc62f4cd3003f12a7b540a8f2ddef9 (diff)
downloadglibc-a25f2023916cf86dca8a1dc89df5518dcbefa11a.tar.gz
Update.
* time/strptime.c (strptime_internal, case 's'): Initialize secs to zero. Patch by Bruce Elliott <bde@nwlink.com>. 1999-01-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * elf/Makefile (extra-objs): Add test modules objects. 1999-01-27 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'time/strptime.c')
-rw-r--r--time/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/strptime.c b/time/strptime.c
index f4b954dfe9..26f77ebbdd 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 <drepper@cygnus.com>, 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;