]> git.saurik.com Git - wxWidgets.git/commitdiff
Needed to initialize time_t to 0 in GetTimeZone to prevent a arithmetic underflow...
authorDavid Webster <Dave.Webster@bhmi.com>
Tue, 9 Jan 2001 23:29:09 +0000 (23:29 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Tue, 9 Jan 2001 23:29:09 +0000 (23:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index e259d1824b2a6673bba476afb7048b0cbb3cd67e..6dab7627004e93baeb2ec20eaed898d582c18b88 100644 (file)
@@ -247,9 +247,9 @@ static int GetTimeZone()
     {
         // just call localtime() instead of figuring out whether this system
         // supports tzset(), _tzset() or something else
-        time_t t;
-        (void)localtime(&t);
+        time_t                 t = 0;
 
+        (void)localtime(&t);
         s_timezoneSet = TRUE;
     }