mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +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:
parent
fe48dfb1ce
commit
b81b921f79
@ -1,3 +1,7 @@
|
||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* cli/cli-script.c (setup_user_args): Don't return after error.
|
||||
|
||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* somread.c (som_symtab_read): Call do_cleanups.
|
||||
|
@ -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…
Reference in New Issue
Block a user