summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-20 18:23:43 +0200
committerarg@10ksloc.org <unknown>2006-07-20 18:23:43 +0200
commit0a4342098b6d01367c69782c643cb685f1cd3c3d (patch)
tree9ff776831d212d0758a26a476e50a9e7b76ce6af
parent72707c2fae68f5eba6ea97cbf356bfb968c8a15d (diff)
serious mistake in pop() (forgot to set c->prev to NULL on pop)
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index 34c69aa1..89ca5fb6 100644
--- a/client.c
+++ b/client.c
@@ -284,6 +284,7 @@ pop(Client *c)
c->next->prev = c->prev;
*l = c->next;
+ c->prev = NULL;
if(clients)
clients->prev = c;
c->next = clients;