From: Nick Clifton Date: Tue, 25 Sep 2007 15:58:04 +0000 (+0000) Subject: * cg_print.c (sort_members): Include the final member on the list in the sort. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d7b968704e993c5c3a37a997a1a55f630174be3;p=binutils-gdb.git * cg_print.c (sort_members): Include the final member on the list in the sort. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 302a73f7f9a..5b2844f0b6c 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2007-09-25 Robert Norton + + * cg_print.c (sort_members): Include the final member on the list + in the sort. + 2007-09-17 Nick Clifton * po/es.po: Updated Spanish translation. diff --git a/gprof/cg_print.c b/gprof/cg_print.c index 104d0499ec6..4799bc7822e 100644 --- a/gprof/cg_print.c +++ b/gprof/cg_print.c @@ -166,7 +166,7 @@ sort_members (Sym *cyc) todo = cyc->cg.cyc.next; cyc->cg.cyc.next = 0; - for (doing = todo; doing && doing->cg.cyc.next; doing = todo) + for (doing = todo; doing != NULL; doing = todo) { todo = doing->cg.cyc.next;