mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -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:
parent
01404a3713
commit
55137fa30d
@ -46,7 +46,7 @@ static char *get_argument(char **cmd, char **arglist)
|
|||||||
arg = 0;
|
arg = 0;
|
||||||
max = -1;
|
max = -1;
|
||||||
|
|
||||||
argcount = strarray_length(arglist);
|
argcount = arglist == NULL ? 0 : strarray_length(arglist);
|
||||||
|
|
||||||
if (**cmd == '*') {
|
if (**cmd == '*') {
|
||||||
/* get all arguments */
|
/* get all arguments */
|
||||||
|
Loading…
Reference in New Issue
Block a user