diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:31:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:31:33 +0000 |
commit | b81b921f794dc3ce6112e784f39511004c7cb542 (patch) | |
tree | 9043a954f7c4d0e29330c5b9205f7488af9c18a9 /gdb/cli/cli-script.c | |
parent | fe48dfb1ce26560b351cc9fbaed38e69f4ba89db (diff) | |
download | gdb-b81b921f794dc3ce6112e784f39511004c7cb542.zip gdb-b81b921f794dc3ce6112e784f39511004c7cb542.tar.gz gdb-b81b921f794dc3ce6112e784f39511004c7cb542.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 3b24799..43fd479 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -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') |