[Scummvm-cvs-logs] SF.net SVN: scummvm:[48092] scummvm/trunk/engines/cruise/background.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Feb 20 02:57:40 CET 2010
Revision: 48092
http://scummvm.svn.sourceforge.net/scummvm/?rev=48092&view=rev
Author: lordhoto
Date: 2010-02-20 01:57:34 +0000 (Sat, 20 Feb 2010)
Log Message:
-----------
"const char *" strings should be compared via strcmp and not via !=/==.
Modified Paths:
--------------
scummvm/trunk/engines/cruise/background.cpp
Modified: scummvm/trunk/engines/cruise/background.cpp
===================================================================
--- scummvm/trunk/engines/cruise/background.cpp 2010-02-19 22:26:30 UTC (rev 48091)
+++ scummvm/trunk/engines/cruise/background.cpp 2010-02-20 01:57:34 UTC (rev 48092)
@@ -210,7 +210,7 @@
MemFree(ptrToFree);
- if (name != backgroundTable[idx].name) {
+ if (strcmp(name, backgroundTable[idx].name)) {
if (strlen(name) > sizeof(backgroundTable[idx].name))
warning("background name length exceeded allowable maximum");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list