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:
Tom Tromey 2013-05-30 16:31:33 +00:00
parent fe48dfb1ce
commit b81b921f79
2 changed files with 6 additions and 5 deletions

View File

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

View File

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