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@
This commit is contained in:
okan 2009-05-30 00:29:08 +00:00
parent 8bbc376fd9
commit 6e9fa7548b

2
menu.c
View File

@ -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();