diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-11-06 01:04:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-11-06 01:04:13 +0000 |
commit | 94a749f69ad4b18250e9aab7292b6e8496e0a065 (patch) | |
tree | 6b5d03838e15c61567cdd90c56e99b2b6dcf1561 /time/tzfile.c | |
parent | ffb1b882828a6fa71fb4e9be1c30cacafb3c70c3 (diff) | |
download | glibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.zip glibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.tar.gz glibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.tar.bz2 |
* time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
Patch by Szymon Siwek <sls@poczta.wp.pl>.
Diffstat (limited to 'time/tzfile.c')
-rw-r--r-- | time/tzfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/tzfile.c b/time/tzfile.c index d19b7e9..9700223 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -381,7 +381,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap) else tzspec[tzspec_len - 1] = '\0'; } - else if (sizeof (time_t) == 4 && tzhead.tzh_version != '\0') + else if (sizeof (time_t) == 4 && tzhead.tzh_version[0] != '\0') { /* Get the TZ string. */ if (__builtin_expect (fread_unlocked ((void *) &tzhead, sizeof (tzhead), |