Преглед изворни кода

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

arg@10ksloc.org пре 19 година
родитељ
комит
0a4342098b
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      client.c

+ 1 - 0
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;