From a2ae32751323764e9959bb7d186a36d83a259025 Mon Sep 17 00:00:00 2001 From: David Webster Date: Tue, 9 Jan 2001 23:29:09 +0000 Subject: [PATCH] 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 --- src/common/datetime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2