This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] * cli/cli-decode.c (apropos_cmd): Fix avoidance of double printing.
- From: Tom Tromey <tromey at redhat dot com>
- To: Samuel Bronson <naesten at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 17 Jun 2009 11:26:33 -0600
- Subject: Re: [PATCH 1/2] * cli/cli-decode.c (apropos_cmd): Fix avoidance of double printing.
- References: <1245209405-9539-1-git-send-email-naesten@gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Samuel" == Samuel Bronson <naesten@gmail.com> writes:
Samuel> Signed-off-by: Samuel Bronson <naesten@gmail.com>
Samuel> ---
Samuel> gdb/cli/cli-decode.c | 4 ++--
Samuel> 1 files changed, 2 insertions(+), 2 deletions(-)
Needs a ChangeLog entry...
Samuel> - int returnvalue=1; /*Needed to avoid double printing*/
Samuel> + int returnvalue=-1; /*Needed to avoid double printing*/
Samuel> /* Walk through the commands */
Samuel> for (c=commandlist;c;c=c->next)
Samuel> {
Shouldn't this reinitialize returnvalue to -1 each time through the
loop?
Tom