From e8d95bf210c652912716cc41e6f48e4b8f656792 Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Sat, 30 May 2009 00:29:09 +0000 Subject: 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@ --- app/cwm/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/cwm') 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(); -- cgit v1.2.3