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:
Markus Mäkelä
2017-08-08 06:53:43 +03:00
parent d09e0d03bc
commit 9847b36a12
2 changed files with 6 additions and 0 deletions

View File

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