# HG changeset patch # User Eric Wing # Date 1293189430 28800 # Node ID 14c22fc3c7537a71d8b5f7f1100ba111e0cde8f0 # Parent a8d96c934e77a165939b375e331e221ef8ab7652 Fix to LinkedList_Clear diff -r a8d96c934e77 -r 14c22fc3c753 LinkedList.c --- 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;