mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-28 01:47:19 +08:00
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:
@ -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')
|
||||
|
Reference in New Issue
Block a user