* cg_print.c (sort_members): Include the final member on the list in the sort.
authorNick Clifton <nickc@redhat.com>
Tue, 25 Sep 2007 15:58:04 +0000 (15:58 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 25 Sep 2007 15:58:04 +0000 (15:58 +0000)
gprof/ChangeLog
gprof/cg_print.c

index 302a73f7f9ab97601adb8654e0e6718639b38504..5b2844f0b6ca777878a4a2ade46c216d09fc010f 100644 (file)
@@ -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.
index 104d0499ec67f8899321ecda4953f294b478fea5..4799bc7822ea5926793e893fce83c9877dc3a3ff 100644 (file)
@@ -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;