parent
a7907cd07e
commit
758cbd097d
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,8 @@ String &String::operator=(StringSumHelper &&rval) {
|
|||
#endif
|
||||
|
||||
String &String::operator=(const char *cstr) {
|
||||
return copy(cstr, strlen(cstr));
|
||||
const uint32_t length = cstr ? strlen(cstr) : 0u;
|
||||
return copy(cstr, length);
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
|
|
|
|||
Loading…
Reference in a new issue