mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
01404a3713
commit
55137fa30d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user