summaryrefslogtreecommitdiff
path: root/src/common/command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-04-02 11:37:22 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-04-02 11:37:22 +0000
commit8ef6192b4963b293f7539d46b260cf514ac3acb2 (patch)
tree4992757a8bdf717532fccdb231f4637c0131c6c8 /src/common/command.c
parentf98d66a842b080c7f0003ae84c825e07e8ee3e72 (diff)
downloadweechat-8ef6192b4963b293f7539d46b260cf514ac3acb2.zip
Fixed string explosion bug (should return 0 with empty string)
Diffstat (limited to 'src/common/command.c')
-rw-r--r--src/common/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/command.c b/src/common/command.c
index c5f8d021a..021cd3d2c 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -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)