* cg_print.c (sort_members): Include the final member on the list in the sort.

This commit is contained in:
Nick Clifton 2007-09-25 15:58:04 +00:00
parent cac2720567
commit 2d7b968704
2 changed files with 6 additions and 1 deletions

View 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.

View 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;