Fixed V547: Bad C-string comparsion

This comparison of a string to an empty is meaningless, since in fact two pointers will be compared and the expression will always be false.
This commit is contained in:
Phillip Khandeliants 2017-04-27 12:03:44 +03:00
parent ffb943f3bb
commit c0f3c4e2f5

View file

@ -2148,7 +2148,7 @@ DefineEngineFunction( displaySplashWindow, bool, (const char* path), (""),
"@return True if the splash window could be successfully initialized.\n\n"
"@ingroup Platform" )
{
if (path == "")
if (path == NULL || *path == '\0')
{
path = Con::getVariable("$Core::splashWindowImage");
}