aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2009-05-30 00:29:08 +0000
committerokan2009-05-30 00:29:08 +0000
commit2bea52408b94dcb7c83f8448de2fc706e13d34b2 (patch)
treec52ae6f4e3ab28303396a3499c20ad281ed736a1 /menu.c
parent6d36300cc47d0a04b0b008bcdc473617bd2935cf (diff)
downloadcwm-2bea52408b94dcb7c83f8448de2fc706e13d34b2.tar.gz
revert the 1.4 change - causes a double free noticed by grange@ a while
ago while using kazehakase (or clients that don't set a name). ok oga@
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index f8c8abc..a6cd6ae 100644
--- a/menu.c
+++ b/menu.c
@@ -161,7 +161,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy,
}
}
out:
- if ((dummy == 0 && mi->dummy) || (mi->text[0] == '\0')) { /* no match */
+ if (dummy == 0 && mi->dummy) { /* no match */
xfree (mi);
mi = NULL;
xu_ptr_ungrab();