aboutsummaryrefslogtreecommitdiff
path: root/time/tzset.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/tzset.c')
-rw-r--r--time/tzset.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/time/tzset.c b/time/tzset.c
index d3625fe9dd..d7659008bc 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -328,12 +328,9 @@ __tzset_internal (always)
{
register tz_rule *tzr = &tz_rules[whichrule];
- if (*tz == ',')
- {
- ++tz;
- if (*tz == '\0')
- return;
- }
+ /* Ignore comma to support string following the incorrect
+ specification in early POSIX.1 printings. */
+ tz += *tz == ',';
/* Get the date of the change. */
if (*tz == 'J' || isdigit (*tz))