1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

Fixed string explosion bug (should return 0 with empty string)

This commit is contained in:
Sebastien Helleu
2006-04-02 11:37:22 +00:00
parent f98d66a842
commit 8ef6192b49
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ explode_string (char *string, char *separators, int num_items_max,
n_items = num_items_max;
if (string == NULL)
if (!string || !string[0])
return NULL;
if (num_items_max == 0)
+1 -1
View File
@@ -464,7 +464,7 @@ explode_string (char *string, char *separators, int num_items_max,
n_items = num_items_max;
if (string == NULL)
if (!string || !string[0])
return NULL;
if (num_items_max == 0)