[19/59] Trivial tzset_internal speedup

Message ID 20250105055750.1668721-20-eggert@cs.ucla.edu (mailing list archive)
State New
Headers
Series time: sync mktime from Gnulib |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Paul Eggert Jan. 5, 2025, 5:56 a.m. UTC
  * 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(-)
  

Patch

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;
     }