summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-02-16 10:23:14 +0000
committerRoland McGrath <roland@gnu.org>2005-02-16 10:23:14 +0000
commit10e8cc12fad568d6cdce62df59657ebd4139df50 (patch)
tree610c8ae5b0971b4d79fd3fda469aac86eb0bce57 /time
parent6cf3dca07f22b441e95b1e8b950d71816330a429 (diff)
2005-01-09 Andreas Jaeger <aj@suse.de>
[BZ #732] * time/strptime_l.c (__strptime_internal): Add braces to avoid warning.
Diffstat (limited to 'time')
-rw-r--r--time/strptime_l.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/time/strptime_l.c b/time/strptime_l.c
index df98099f0a..cf0ab7153d 100644
--- a/time/strptime_l.c
+++ b/time/strptime_l.c
@@ -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