From 0a4342098b6d01367c69782c643cb685f1cd3c3d Mon Sep 17 00:00:00 2001 From: "arg@10ksloc.org" Date: Thu, 20 Jul 2006 18:23:43 +0200 Subject: [PATCH] serious mistake in pop() (forgot to set c->prev to NULL on pop) --- client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client.c b/client.c index 34c69aa..89ca5fb 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;