Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
serious mistake in pop() (forgot to set c->prev to NULL on pop)
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
34c69aa
..
89ca5fb
100644
(file)
--- 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;