Mercurial > almixer_isolated
diff LinkedList.c @ 21:14c22fc3c753
Fix to LinkedList_Clear
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Fri, 24 Dec 2010 03:17:10 -0800 |
parents | d58eb38c771b |
children |
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;