remove erroneous return from setup_user_args
This fixes setup_user_args to drop a useless and confusing "return". * cli/cli-script.c (setup_user_args): Don't return after error.
This commit is contained in:
parent
fe48dfb1ce
commit
b81b921f79
2 changed files with 6 additions and 5 deletions
|
@ -689,11 +689,8 @@ setup_user_args (char *p)
|
|||
int bsquote = 0;
|
||||
|
||||
if (arg_count >= MAXUSERARGS)
|
||||
{
|
||||
error (_("user defined function may only have %d arguments."),
|
||||
MAXUSERARGS);
|
||||
return old_chain;
|
||||
}
|
||||
error (_("user defined function may only have %d arguments."),
|
||||
MAXUSERARGS);
|
||||
|
||||
/* Strip whitespace. */
|
||||
while (*p == ' ' || *p == '\t')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue