summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2009-05-30 00:29:09 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2009-05-30 00:29:09 +0000
commite8d95bf210c652912716cc41e6f48e4b8f656792 (patch)
treecb20546bcaa7f945225496cc3afa176de41301e9 /app/cwm
parent9996670b76c09c089cc5c46e5eb4ceab4ddd5ca9 (diff)
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 'app/cwm')
-rw-r--r--app/cwm/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c
index f8c8abca9..a6cd6aed1 100644
--- a/app/cwm/menu.c
+++ b/app/cwm/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();