Mercurial > almixer_isolated
changeset 21:14c22fc3c753
Fix to LinkedList_Clear
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Fri, 24 Dec 2010 03:17:10 -0800 |
parents | a8d96c934e77 |
children | 58f03008ea05 |
files | LinkedList.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/LinkedList.c Sun Nov 07 05:20:21 2010 -0800 +++ b/LinkedList.c Fri Dec 24 03:17:10 2010 -0800 @@ -251,13 +251,14 @@ void LinkedList_Clear(LinkedList* linked_list) { + LinkedListNode* current_node; + LinkedListNode* next_node; if(NULL == linked_list) { return; } - LinkedListNode* current_node = linked_list->headPtr; - LinkedListNode* next_node; + current_node = linked_list->headPtr; while(NULL != current_node) { next_node = current_node->nextNode;