Merge pull request #32524 from qarmin/fix_string_builder_null_memcpy

Don't add to StringBuilder empty String
This commit is contained in:
Rémi Verschelde 2019-10-03 21:24:04 +02:00 committed by GitHub
commit 00417675fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,9 @@
StringBuilder &StringBuilder::append(const String &p_string) {
if (p_string == String())
return *this;
strings.push_back(p_string);
appended_strings.push_back(-1);