summaryrefslogtreecommitdiff
path: root/src/core/special-vars.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 14:17:16 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 14:17:16 +0000
commit55137fa30d6144c66c081aefc5f7ad7d346ee0f1 (patch)
tree35939efdbd142d544ebf37942984fe28171218cc /src/core/special-vars.c
parent01404a3713654a65ee42fa3b2ce708d482ab8665 (diff)
downloadirssi-55137fa30d6144c66c081aefc5f7ad7d346ee0f1.zip
get_argument() - allow arglist to be NULL, just assume that there's no
arguments then. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2083 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/special-vars.c')
-rw-r--r--src/core/special-vars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/special-vars.c b/src/core/special-vars.c
index 4f68bc53..196a2cae 100644
--- a/src/core/special-vars.c
+++ b/src/core/special-vars.c
@@ -46,7 +46,7 @@ static char *get_argument(char **cmd, char **arglist)
arg = 0;
max = -1;
- argcount = strarray_length(arglist);
+ argcount = arglist == NULL ? 0 : strarray_length(arglist);
if (**cmd == '*') {
/* get all arguments */