summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'group.c')
-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);