This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] * cli/cli-decode.c (apropos_cmd): Fix avoidance of double printing.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]