summaryrefslogtreecommitdiff
path: root/core/string_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/string_builder.cpp')
-rw-r--r--core/string_builder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/string_builder.cpp b/core/string_builder.cpp
index 35526e0d70..22eed70f8b 100644
--- a/core/string_builder.cpp
+++ b/core/string_builder.cpp
@@ -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);