aboutsummaryrefslogtreecommitdiffstats
path: root/common/core/string.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/core/string.cxx')
-rw-r--r--common/core/string.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/core/string.cxx b/common/core/string.cxx
index 49501a9f..091836db 100644
--- a/common/core/string.cxx
+++ b/common/core/string.cxx
@@ -64,6 +64,9 @@ namespace core {
std::vector<std::string> out;
const char *start, *stop;
+ if (src[0] == '\0')
+ return out;
+
start = src;
do {
stop = strchr(start, delimiter);