>From f42b8993006a0be9f734f07596e9c6f8925dfc75 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 31 Aug 2015 06:43:00 -0700
Subject: [PROPOSED PATCH] Remove unnecessary static initializations

* NEWS: Document this.
* localtime.c (timezone, daylight) [USG_COMPAT]:
(altzone) [ALTZONE]:
Remove unnecessary initializations to zero.  This saves a few
object-module words in some environments, and makes linkage via
common storage possible.
---
 NEWS        | 3 +++
 localtime.c | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index ffe3fb2..1296b91 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ Unreleased, experimental changes
     localtime no longer mishandles America/Anchorage after 2037.
     (Thanks to Bradley White for reporting the bug.)
 
+    The localtime module allows the variables 'timezone', 'daylight',
+    and 'altzone' to be in common storage shared with other modules.
+
 
 Release 2015f - 2015-08-10 18:06:56 -0700
 
diff --git a/localtime.c b/localtime.c
index ac34e5d..be10749 100644
--- a/localtime.c
+++ b/localtime.c
@@ -194,12 +194,12 @@ char *			tzname[2] = {
 static struct tm	tm;
 
 #ifdef USG_COMPAT
-long			timezone = 0;
-int			daylight = 0;
+long			timezone;
+int			daylight;
 #endif /* defined USG_COMPAT */
 
 #ifdef ALTZONE
-long			altzone = 0;
+long			altzone;
 #endif /* defined ALTZONE */
 
 /* Initialize *S to a value based on GMTOFF, ISDST, and ABBRIND.  */
-- 
2.1.4

