# HG changeset patch # User tuomov # Date 1045520687 -3600 # Node ID aad48c3d4966ec8302dafee81caf7f92996f24a0 # Parent 4fdc7ea2bc387ab01ab6d91b3eac20e344c1805c trunk: changeset 46 UNLINK_ITEM fixed to reset next/previous pointers to NULL diff -r 4fdc7ea2bc38 -r aad48c3d4966 include/libtu/dlist.h --- a/include/libtu/dlist.h Sun Nov 03 03:51:35 2002 +0100 +++ b/include/libtu/dlist.h Mon Feb 17 23:24:47 2003 +0100 @@ -65,6 +65,8 @@ }else{ \ (ITEM)->PREV->NEXT=(ITEM)->NEXT; \ (ITEM)->NEXT->PREV=(ITEM)->PREV; \ - } + } \ + (ITEM)->NEXT=NULL; \ + (ITEM)->PREV=NULL; #endif /* LIBTU_DLIST_H */