aboutsummaryrefslogtreecommitdiffstats
path: root/gprof
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
commit117874a33b0c0e205aeff2d974cebcf058019818 (patch)
treef8b7bc3bd6d5cdcc1edf9d18e5e798d1225a3868 /gprof
parent598e0c36037b7cb596c3cd10fd41bc1f466e1d65 (diff)
downloadbinutils-117874a33b0c0e205aeff2d974cebcf058019818.tar.gz
* cg_print.c (sort_members): Include the final member on the list in the sort.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/cg_print.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 302a73f7f..5b2844f0b 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-25 Robert Norton <rnorton@broadcom.com>
+
+ * cg_print.c (sort_members): Include the final member on the list
+ in the sort.
+
2007-09-17 Nick Clifton <nickc@redhat.com>
* po/es.po: Updated Spanish translation.
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index 104d0499e..4799bc782 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;