summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index f3d05be67..a2784b542 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -568,7 +568,7 @@ string_explode (char *string, char *separators, int keep_eol,
return NULL;
string2 = string_strip (string, 1, 1, separators);
- if (!string2)
+ if (!string2 || !string2[0])
return NULL;
/* calculate number of items */