about summary refs log tree commit diff stats
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)
downloaddwm-0a4342098b6d01367c69782c643cb685f1cd3c3d.tar.gz
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 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;
='n6' href='#n6'>6 7 8 9 10 11 12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68