From 8978f0837e79f9735ee09b5c55e7a60f17570375 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 4 Jan 2008 17:08:30 +0100 Subject: [PATCH] break on detach or for() will fail to assign ->next --- tag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tag.c b/tag.c index 9fce6c95..2ec72012 100644 --- a/tag.c +++ b/tag.c @@ -77,7 +77,10 @@ untag_client(Client *c, Tag *t) for(tc = globalconf.tclink; tc; tc = tc->next) if(tc->client == c && tc->tag == t) + { detach_tagclientlink(tc); + break; + } } Bool