Get rid of some warnings in timer initialization.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5294 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2016-03-30 20:30:59 +00:00
parent d7a700e44f
commit c279615ab8

View File

@ -253,7 +253,8 @@ namespace os
timeinfo = localtime(&rawtime);
// init with all 0 to indicate error
ITimer::RealTimeDate date={0};
ITimer::RealTimeDate date;
memset(&date, 0, sizeof(date));
// at least Windows returns NULL on some illegal dates
if (timeinfo)
{