mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-31 22:53:54 +00:00
"const char *" strings should be compared via strcmp and not via !=/==.
svn-id: r48092
This commit is contained in:
parent
b51568ddaf
commit
9b467ee4ff
@ -210,7 +210,7 @@ int loadBackground(const char *name, int idx) {
|
||||
|
||||
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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user