From: David Webster Date: Tue, 9 Jan 2001 23:29:09 +0000 (+0000) Subject: Needed to initialize time_t to 0 in GetTimeZone to prevent a arithmetic underflow... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2ae32751323764e9959bb7d186a36d83a259025 Needed to initialize time_t to 0 in GetTimeZone to prevent a arithmetic underflow in VA 4.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index e259d1824b..6dab762700 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -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; }