Commit c279615a authored by cutealien's avatar cutealien

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
parent d7a700e4
...@@ -253,7 +253,8 @@ namespace os ...@@ -253,7 +253,8 @@ namespace os
timeinfo = localtime(&rawtime); timeinfo = localtime(&rawtime);
// init with all 0 to indicate error // 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 // at least Windows returns NULL on some illegal dates
if (timeinfo) if (timeinfo)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment