trunk: changeset 46

Mon, 17 Feb 2003 23:24:47 +0100

author
tuomov
date
Mon, 17 Feb 2003 23:24:47 +0100
changeset 43
aad48c3d4966
parent 42
4fdc7ea2bc38
child 44
71d5a2dee8dc

trunk: changeset 46
UNLINK_ITEM fixed to reset next/previous pointers to NULL

include/libtu/dlist.h file | annotate | diff | comparison | revisions
--- 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 */

mercurial