# HG changeset patch # User Eris Caffee # Date 1305074892 18000 # Node ID 34f1d2f54d37ba52e0f483b80631b09d8315cf2b # Parent c6e3398465272ee47f84333d0bbce91963069804 cleanup diff -r c6e339846527 -r 34f1d2f54d37 src/LinkedList.c --- a/src/LinkedList.c Fri Dec 31 12:47:46 2010 -0600 +++ b/src/LinkedList.c Tue May 10 19:48:12 2011 -0500 @@ -68,6 +68,7 @@ if ((!this) || (!data)) return NULL; + /* If at end of list or list is empty or list has only one element */ if (this->Curr == this->Tail) { return ll_push(this, data); @@ -174,7 +175,7 @@ if (this->Curr == this->Head) { - this->Curr->next->prev = NULL; + this->Head->next->prev = NULL; this->Head = this->Curr = this->Head->next; } else