aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-08-15 23:37:56 +0000
committerArnaud Boutonné2010-08-15 23:37:56 +0000
commit58987824c2846f127ced4902ab37098e34662b20 (patch)
treeab3bb49dabfc4a848af887205531d6f6916f41e9 /engines/gob/util.cpp
parentb49761b6eae3a0aadefef4c4ffee6a7b583cc3ac (diff)
downloadscummvm-rg350-58987824c2846f127ced4902ab37098e34662b20.tar.gz
scummvm-rg350-58987824c2846f127ced4902ab37098e34662b20.tar.bz2
scummvm-rg350-58987824c2846f127ced4902ab37098e34662b20.zip
Gob - Follow cppcheck advices
svn-id: r52106
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index 26899232e2..c895c6301d 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -435,7 +435,7 @@ void Util::cleanupStr(char *str) {
cutFromStr(str, 0, 1);
// Trim spaces right
- while ((strlen(str) > 0) && (str[strlen(str) - 1] == ' '))
+ while ((*str != '\0') && (str[strlen(str) - 1] == ' '))
cutFromStr(str, strlen(str) - 1, 1);
// Merge double spaces