wininet: Properly initialize struct.

This commit is contained in:
Vitaliy Margolen 2008-04-10 22:59:05 -06:00 committed by Alexandre Julliard
parent 40c3718d52
commit 9f82e4730b

View file

@ -71,6 +71,7 @@ time_t ConvertTimeString(LPCWSTR asctime)
tmpChar[22]='\0';
tmpChar[25]='\0';
memset( &t, 0, sizeof(t) );
t.tm_year = atoiW(tmpChar+12) - 1900;
t.tm_mday = atoiW(tmpChar+5);
t.tm_hour = atoiW(tmpChar+17);