Add another check to getProcessorSpeedMHz to prevent crashes on Unix when it's called with 0 parameter.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5535 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-08-25 15:04:51 +00:00
parent c937fcf488
commit 213cb5a93f
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
}
fclose(file);
}
return (*MHz != 0);
return (MHz && *MHz != 0);
#endif
}