1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Fixed string explode (when there's only delimiters in string) (bug #23123)

This commit is contained in:
Sebastien Helleu
2008-04-30 20:09:43 +02:00
parent bbde23dec6
commit a57bc43763
+1 -1
View File
@@ -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 */