diff options
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/str.cpp b/common/str.cpp index 6a2333d39c..874b99938e 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -35,8 +35,8 @@ namespace ScummVM { String::String(const char *str, int len) { _refCount = new int(1); - if (str) { - if (len) + if (str && len != 0) { + if (len > 0) _capacity = _len = len; else _capacity = _len = resStrLen(str); |