Fix Dereference of null pointer on String::operator+=.

This commit is contained in:
LuisAntonRebollo 2014-05-11 19:46:43 +02:00
parent 2142d452d4
commit 32a73f9eb2

View file

@ -760,7 +760,7 @@ String& String::operator=(const String &src)
String& String::operator+=(const StringChar *src)
{
if( src == NULL && !*src )
if( src == NULL || !*src )
return *this;
// Append the given string into a new string