about summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-07-01 16:38:16 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-07-01 16:40:15 +0200
commit671671959360a30e99b6812f132b6f1f0ff0d6e6 (patch)
tree4926d843020562666ed212543d7149ac1d92469f /group.c
parent4454948f213d470ca3e6c087bb790190c7bfd484 (diff)
parent8efaf33cfbced84ff073f5c4d3b2c8e9d7b3bff4 (diff)
downloadcwm-671671959360a30e99b6812f132b6f1f0ff0d6e6.tar.gz
cwm-671671959360a30e99b6812f132b6f1f0ff0d6e6.tar.xz
cwm-671671959360a30e99b6812f132b6f1f0ff0d6e6.zip
cvsimport
Diffstat (limited to 'group.c')
-rw-r--r--group.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/group.c b/group.c
index a10b130..9fe6115 100644
--- a/group.c
+++ b/group.c
@@ -22,7 +22,6 @@
 #include <sys/types.h>
 #include "queue.h"
 
-#include <assert.h>
 #include <err.h>
 #include <errno.h>
 #include <limits.h>
@@ -264,9 +263,9 @@ group_cycle(struct screen_ctx *sc, int flags)
 {
 	struct group_ctx	*gc, *showgroup = NULL;
 
-	assert(sc->group_active != NULL);
+	if (((gc = sc->group_active)) == NULL)
+		errx(1, "group_cycle: no active group");
 
-	gc = sc->group_active;
 	for (;;) {
 		gc = (flags & CWM_RCYCLE) ? TAILQ_PREV(gc, group_ctx_q,
 		    entry) : TAILQ_NEXT(gc, entry);