aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index df68cb8801..05be3b9e6b 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -37,7 +37,7 @@ String::String(const char *str, int len)
_refCount = new int(1);
- if (str && len != 0) {
+ if (str && *str && len != 0) {
if (len > 0)
_capacity = _len = len;
else