This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix variable name typo in tzfile.c
- From: Allan McRae <allan at archlinux dot org>
- To: libc-alpha at sourceware dot org
- Date: Wed, 21 Dec 2011 10:06:13 +1000
- Subject: [PATCH] Fix variable name typo in tzfile.c
Fix a variable name typo introduced in commit 97ac2654. This resulted in
time-zone settings being ignored (at least on x86_64-unknown-linux-gnu).
Allan
ChangeLog:
2011-12-18 Allan McRae <allan@archlinux.org>
* time/tzfile.c (__tzfile_read): Fix typo in variable name.
diff --git a/time/tzfile.c b/time/tzfile.c
index 402389c..a8c1c0e 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -278,7 +278,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
if (__builtin_expect (tzspec_len < num_isstd, 0))
goto lose;
tzspec_len -= num_isstd;
- if (__builtin_expect (tzspec == 0 || tzspec_len - 1 < num_isgmt, 0))
+ if (__builtin_expect (tzspec_len == 0 || tzspec_len - 1 < num_isgmt, 0))
goto lose;
tzspec_len -= num_isgmt + 1;
if (__builtin_expect (SIZE_MAX - total_size < tzspec_len, 0))