]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-01-09 Andreas Jaeger <aj@suse.de>
authorRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 10:23:14 +0000 (10:23 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 10:23:14 +0000 (10:23 +0000)
[BZ #732]
* time/strptime_l.c (__strptime_internal): Add braces to avoid
warning.

time/strptime_l.c

index df98099f0a45eb991db8cec86172147370d43ee7..cf0ab7153d99c025c9f12c5299926fa309bafb33 100644 (file)
@@ -539,10 +539,12 @@ __strptime_internal (rp, fmt, tm, decided, era_cnt LOCALE_PARAM)
            }
 #endif
          if (!match_string (HERE_AM_STR, rp))
-           if (match_string (HERE_PM_STR, rp))
-             is_pm = 1;
-           else
-             return NULL;
+           {
+             if (match_string (HERE_PM_STR, rp))
+               is_pm = 1;
+             else
+               return NULL;
+           }
          break;
        case 'r':
 #ifdef _NL_CURRENT