1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

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
This commit is contained in:
Timo Sirainen 2001-11-19 14:17:16 +00:00 committed by cras
parent 01404a3713
commit 55137fa30d

View File

@ -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 */