serious mistake in pop() (forgot to set c->prev to NULL on pop)

This commit is contained in:
arg@10ksloc.org 2006-07-20 18:23:43 +02:00
parent 72707c2fae
commit 0a4342098b

View file

@ -284,6 +284,7 @@ pop(Client *c)
c->next->prev = c->prev; c->next->prev = c->prev;
*l = c->next; *l = c->next;
c->prev = NULL;
if(clients) if(clients)
clients->prev = c; clients->prev = c;
c->next = clients; c->next = clients;