diff options
Diffstat (limited to 'common/str.h')
-rw-r--r-- | common/str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.h b/common/str.h index 3a57be0ce4..c611b3df87 100644 --- a/common/str.h +++ b/common/str.h @@ -96,7 +96,7 @@ public: static const char *emptyString; #endif - String() : _len(0), _str(_storage), _storage() {} + String() : _len(0), _str(_storage) { _storage[0] = 0; } String(const char *str, uint32 len = 0); String(const String &str); virtual ~String(); |