From 94a749f69ad4b18250e9aab7292b6e8496e0a065 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 6 Nov 2007 01:04:13 +0000 Subject: * time/tzfile.c (__tzfile_read): Fix check for version 0 data files. Patch by Szymon Siwek . --- time/tzfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'time') 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), -- cgit v1.2.3-70-g09d2