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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user