about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroga <oga>2008-07-18 15:40:52 +0000
committeroga <oga>2008-07-18 15:40:52 +0000
commit556f7a08715aac4229db4d4d5a350a40fef3f95c (patch)
tree8dbcace02c2bf92e9a02ec0bf969d669a46a7c44
parent2798cdc9a7a252797f365818ef49e6db8167696c (diff)
downloadcwm-556f7a08715aac4229db4d4d5a350a40fef3f95c.tar.gz
cwm-556f7a08715aac4229db4d4d5a350a40fef3f95c.tar.xz
cwm-556f7a08715aac4229db4d4d5a350a40fef3f95c.zip
Put back the initialisation of gc in group_cycle. No cookie for okan.
Reported by Dan Harnett, thanks!
-rw-r--r--group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/group.c b/group.c
index c44b80f..2b02b66 100644
--- a/group.c
+++ b/group.c
@@ -207,6 +207,7 @@ group_cycle(int reverse)
 
 	assert(Group_active != NULL);
 
+	gc = Group_active;
 	for (;;) {
 		gc = reverse ? TAILQ_PREV(gc, group_ctx_q, entry) :
 		    TAILQ_NEXT(gc, entry);