diff options
Diffstat (limited to 'time/strptime_l.c')
-rw-r--r-- | time/strptime_l.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/time/strptime_l.c b/time/strptime_l.c index c2c2ee83c5..b9a8e144fe 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -320,17 +320,14 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM) } ++fmt; - if (statep != NULL) - { - /* In recursive calls silently discard strftime modifiers. */ - while (*fmt == '-' || *fmt == '_' || *fmt == '0' - || *fmt == '^' || *fmt == '#') - ++fmt; - - /* And field width. */ - while (*fmt >= '0' && *fmt <= '9') - ++fmt; - } + /* We discard strftime modifiers. */ + while (*fmt == '-' || *fmt == '_' || *fmt == '0' + || *fmt == '^' || *fmt == '#') + ++fmt; + + /* And field width. */ + while (*fmt >= '0' && *fmt <= '9') + ++fmt; #ifndef _NL_CURRENT /* We need this for handling the `E' modifier. */ |