about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2013-12-08 13:51:38 +0000
committerokan <okan>2013-12-08 13:51:38 +0000
commit2951979832af2bf877d05942972f853141e6fd3f (patch)
tree2d4ba52b54459437c63ff2fb85c311d274f97583 /mousefunc.c
parent27513daee2061a5f3e05ae5fef8f83f15a3c9438 (diff)
parent7fad5224d47aba47d4fe02d2ce2b20e058bdedc0 (diff)
downloadcwm-2951979832af2bf877d05942972f853141e6fd3f.tar.gz
cwm-2951979832af2bf877d05942972f853141e6fd3f.tar.xz
cwm-2951979832af2bf877d05942972f853141e6fd3f.zip
cvsimport dh-gapsnap
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 9813c5b..65efa35 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -231,8 +231,8 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
 				continue;
 
 			mi = xcalloc(1, sizeof(*mi));
-			(void)snprintf(mi->text, sizeof(mi->text),
-			    "(%d) %s", cc->group->shortcut, wname);
+			(void)snprintf(mi->text, sizeof(mi->text), "(%d) %s",
+			    cc->group ? cc->group->shortcut : 0, wname);
 			mi->ctx = cc;
 			TAILQ_INSERT_TAIL(&menuq, mi, entry);
 		}