diff options
author | Arnaud Boutonné | 2010-08-15 23:37:56 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-08-15 23:37:56 +0000 |
commit | 58987824c2846f127ced4902ab37098e34662b20 (patch) | |
tree | ab3bb49dabfc4a848af887205531d6f6916f41e9 /engines/gob/util.cpp | |
parent | b49761b6eae3a0aadefef4c4ffee6a7b583cc3ac (diff) | |
download | scummvm-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.cpp | 2 |
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 |