OSDN Git Service

* strptime.cc (_strptime): Fix gcc warnings.
authorcgf <cgf>
Fri, 18 Nov 2005 19:43:02 +0000 (19:43 +0000)
committercgf <cgf>
Fri, 18 Nov 2005 19:43:02 +0000 (19:43 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/libc/strptime.cc

index 5063881..4256a11 100644 (file)
@@ -1,5 +1,9 @@
 2005-11-18  Christopher Faylor  <cgf@timesys.com>
 
+       * strptime.cc (_strptime): Fix gcc warnings.
+
+2005-11-18  Christopher Faylor  <cgf@timesys.com>
+
        * memmem.cc: Move from here.
        * lib/memmem.cc: Move to here.
 
index 007815c..e81cdd5 100644 (file)
@@ -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') {