[PATCH 19/59] Trivial tzset_internal speedup
Paul Eggert
eggert@cs.ucla.edu
Sun Jan 5 05:56:54 GMT 2025
* time/tzset.c (tzset_internal): Omit useless initialization.
All that matters is that the two change values are equal,
which they are because they’ve just been zeroed.
---
time/tzset.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/time/tzset.c b/time/tzset.c
index 7cc675334a..8f7315dabe 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -430,7 +430,6 @@ tzset_internal (int always)
tz_rules[0].name = tz_rules[1].name = "UTC";
if (J0 != 0)
tz_rules[0].type = tz_rules[1].type = J0;
- tz_rules[0].change = tz_rules[1].change = -1;
update_vars ();
return;
}
--
2.45.2
More information about the Libc-alpha
mailing list