From 2bea52408b94dcb7c83f8448de2fc706e13d34b2 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 30 May 2009 00:29:08 +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@ --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-2-gb3c3