mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
prevent trying to exec a null char; could potentially happen with a
canceled or empty searchstr. ok oga@
This commit is contained in:
parent
efbfc5fa42
commit
610e8e83ac
2
menu.c
2
menu.c
@ -149,7 +149,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
if (dummy == 0 && mi->dummy) { /* no match */
|
if ((dummy == 0 && mi->dummy) || (mi->text[0] == '\0')) { /* no match */
|
||||||
xfree (mi);
|
xfree (mi);
|
||||||
mi = NULL;
|
mi = NULL;
|
||||||
xu_ptr_ungrab();
|
xu_ptr_ungrab();
|
||||||
|
Loading…
Reference in New Issue
Block a user