tserious mistake in pop() (forgot to set c->prev to NULL on pop) - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0a4342098b6d01367c69782c643cb685f1cd3c3d
(DIR) parent 72707c2fae68f5eba6ea97cbf356bfb968c8a15d
(HTM) Author: arg@10ksloc.org <unknown>
Date: Thu, 20 Jul 2006 18:23:43 +0200
serious mistake in pop() (forgot to set c->prev to NULL on pop)
Diffstat:
M client.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/client.c b/client.c
t@@ -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;