diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-30 20:09:43 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-30 20:09:43 +0200 |
commit | a57bc43763ae2c8c77287cd48abf6400639c96fe (patch) | |
tree | ae662f0581a6b4fa2d39d3151970cb386d675e47 | |
parent | bbde23dec66de5ddf00b75fedb0abf6a93e6a079 (diff) | |
download | weechat-a57bc43763ae2c8c77287cd48abf6400639c96fe.zip |
Fixed string explode (when there's only delimiters in string) (bug #23123)
-rw-r--r-- | src/core/wee-string.c | 2 |
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 */ |