From 475d817e0230342443203f3b9b3dfe2a45a71779 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Thu, 11 Dec 2014 14:24:03 -0800 Subject: Fixed analyzer issues and warnings (#993 and fixed #992) --- src/core/basetypes/MCString.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/basetypes/MCString.cpp') diff --git a/src/core/basetypes/MCString.cpp b/src/core/basetypes/MCString.cpp index d1115c40..2239363b 100644 --- a/src/core/basetypes/MCString.cpp +++ b/src/core/basetypes/MCString.cpp @@ -939,6 +939,7 @@ void String::appendCharactersLength(const UChar * unicodeCharacters, unsigned in return; } allocate(mLength + length); + MCAssert(mUnicodeChars != NULL); memcpy(&mUnicodeChars[mLength], unicodeCharacters, length * sizeof(* mUnicodeChars)); mLength += length; mUnicodeChars[mLength] = 0; -- cgit v1.2.3