Merge pull request #670 from BeamNG/fix_string_dereference_null_ptr

Fix Dereference of null pointer on String::operator+=
This commit is contained in:
Thomas Fischer 2014-05-25 18:42:23 +02:00
commit 353ecb5961

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