mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fix Dereference of null pointer on String::operator+=.
This commit is contained in:
parent
2142d452d4
commit
32a73f9eb2
1 changed files with 1 additions and 1 deletions
|
|
@ -760,7 +760,7 @@ String& String::operator=(const String &src)
|
||||||
|
|
||||||
String& String::operator+=(const StringChar *src)
|
String& String::operator+=(const StringChar *src)
|
||||||
{
|
{
|
||||||
if( src == NULL && !*src )
|
if( src == NULL || !*src )
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
// Append the given string into a new string
|
// Append the given string into a new string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue