From 959701208b39ac1d35586e0784241cd962cb5dd2 Mon Sep 17 00:00:00 2001 From: Phillip Khandeliants Date: Thu, 27 Apr 2017 12:03:44 +0300 Subject: [PATCH] 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. --- Engine/source/console/consoleFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index bdf1d5cfe..fe55d4b29 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/Engine/source/console/consoleFunctions.cpp @@ -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"); }