OSDN Git Service

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

index 302a73f..5b2844f 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 104d049..4799bc7 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;