summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/libc/strptime.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-11-18 19:43:02 +0000
committerChristopher Faylor <me@cgf.cx>2005-11-18 19:43:02 +0000
commit9cd22f86fcd88171082c8b912eb407bd16c27837 (patch)
treecb798fa750e736e7351122bc289dd1a538946f8f /winsup/cygwin/libc/strptime.cc
parent6381783f6143b6eba86e247638f7ed5b3b7d7d2d (diff)
downloadcygnal-9cd22f86fcd88171082c8b912eb407bd16c27837.tar.gz
cygnal-9cd22f86fcd88171082c8b912eb407bd16c27837.tar.bz2
cygnal-9cd22f86fcd88171082c8b912eb407bd16c27837.zip
* strptime.cc (_strptime): Fix gcc warnings.
Diffstat (limited to 'winsup/cygwin/libc/strptime.cc')
-rw-r--r--winsup/cygwin/libc/strptime.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/libc/strptime.cc b/winsup/cygwin/libc/strptime.cc
index 007815ce5..e81cdd580 100644
--- a/winsup/cygwin/libc/strptime.cc
+++ b/winsup/cygwin/libc/strptime.cc
@@ -311,6 +311,7 @@ label:
case 'A':
case 'a':
+ len = 0;
for (i = 0; i < asizeof(tptr->weekday); i++) {
len = strlen(tptr->weekday[i]);
if (strncasecmp(buf, tptr->weekday[i],
@@ -400,6 +401,7 @@ label:
case 'B':
case 'b':
case 'h':
+ len = 0;
for (i = 0; i < asizeof(tptr->month); i++) {
if (Oalternative) {
if (c == 'B') {