mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
Handle empty TZ strings at the end of new-style timzeone files correctly.
This commit is contained in:
parent
58d60030df
commit
7a7c2c2465
@ -1,3 +1,7 @@
|
||||
2009-06-23 Andreas Schwab <aschwab@redhat.com>
|
||||
|
||||
* time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
|
||||
|
||||
2009-06-22 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* po/id.po: Update from translation team.
|
||||
|
@ -419,6 +419,10 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
|
||||
tzspec = __tzstring (tzstr);
|
||||
}
|
||||
|
||||
/* Don't use an empty TZ string. */
|
||||
if (tzspec != NULL && tzspec[0] == '\0')
|
||||
tzspec = NULL;
|
||||
|
||||
fclose (f);
|
||||
|
||||
/* First "register" all timezone names. */
|
||||
|
Loading…
Reference in New Issue
Block a user