diff options
Diffstat (limited to 'common/core/string.cxx')
-rw-r--r-- | common/core/string.cxx | 3 |
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); |