aboutsummaryrefslogtreecommitdiff
path: root/gprof/cg_print.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-09-25 15:58:04 +0000
committerNick Clifton <nickc@redhat.com>2007-09-25 15:58:04 +0000
commit2d7b968704e993c5c3a37a997a1a55f630174be3 (patch)
tree39e6d4e5b5e70513e8e49e422e890301b05a358e /gprof/cg_print.c
parentcac27205672ae12d3b8f46f59b0adbd9dcdd3a1b (diff)
downloadgdb-2d7b968704e993c5c3a37a997a1a55f630174be3.zip
gdb-2d7b968704e993c5c3a37a997a1a55f630174be3.tar.gz
gdb-2d7b968704e993c5c3a37a997a1a55f630174be3.tar.bz2
* cg_print.c (sort_members): Include the final member on the list in the sort.
Diffstat (limited to 'gprof/cg_print.c')
-rw-r--r--gprof/cg_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index 104d049..4799bc7 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;