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
|
@ -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>
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* somread.c (som_symtab_read): Call do_cleanups.
|
* somread.c (som_symtab_read): Call do_cleanups.
|
||||||
|
|
|
@ -689,11 +689,8 @@ setup_user_args (char *p)
|
||||||
int bsquote = 0;
|
int bsquote = 0;
|
||||||
|
|
||||||
if (arg_count >= MAXUSERARGS)
|
if (arg_count >= MAXUSERARGS)
|
||||||
{
|
error (_("user defined function may only have %d arguments."),
|
||||||
error (_("user defined function may only have %d arguments."),
|
MAXUSERARGS);
|
||||||
MAXUSERARGS);
|
|
||||||
return old_chain;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Strip whitespace. */
|
/* Strip whitespace. */
|
||||||
while (*p == ' ' || *p == '\t')
|
while (*p == ' ' || *p == '\t')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue