summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-11-06 01:04:13 +0000
committerUlrich Drepper <drepper@redhat.com>2007-11-06 01:04:13 +0000
commit94a749f69ad4b18250e9aab7292b6e8496e0a065 (patch)
tree6b5d03838e15c61567cdd90c56e99b2b6dcf1561 /time
parentffb1b882828a6fa71fb4e9be1c30cacafb3c70c3 (diff)
downloadglibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.tar.gz
glibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.tar.xz
glibc-94a749f69ad4b18250e9aab7292b6e8496e0a065.zip
* time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
	Patch by Szymon Siwek <sls@poczta.wp.pl>.
Diffstat (limited to 'time')
-rw-r--r--time/tzfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/tzfile.c b/time/tzfile.c
index d19b7e9b4f..970022379a 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),