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
This commit is contained in:
@@ -247,9 +247,9 @@ static int GetTimeZone()
|
|||||||
{
|
{
|
||||||
// just call localtime() instead of figuring out whether this system
|
// just call localtime() instead of figuring out whether this system
|
||||||
// supports tzset(), _tzset() or something else
|
// supports tzset(), _tzset() or something else
|
||||||
time_t t;
|
time_t t = 0;
|
||||||
(void)localtime(&t);
|
|
||||||
|
|
||||||
|
(void)localtime(&t);
|
||||||
s_timezoneSet = TRUE;
|
s_timezoneSet = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user