changeset 128:0a407fbb8092

serious mistake in pop() (forgot to set c->prev to NULL on pop)
author arg@10ksloc.org
date Thu, 20 Jul 2006 18:23:43 +0200
parents 1480e19f6377
children c478383db7c9
files client.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client.c	Thu Jul 20 16:54:20 2006 +0200
+++ b/client.c	Thu Jul 20 18:23:43 2006 +0200
@@ -284,6 +284,7 @@
 		c->next->prev = c->prev;
 	*l = c->next;
 
+	c->prev = NULL;
 	if(clients)
 		clients->prev = c;
 	c->next = clients;