Fix invalid module command argument count
The module commands were always given the maximum argument count even if less arguments were given.
This commit is contained in:
@ -519,6 +519,10 @@ MODULECMD_ARG* modulecmd_arg_parse(const MODULECMD *cmd, int argc, const void **
|
||||
modulecmd_arg_free(arg);
|
||||
arg = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
arg->argc = argc;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user