redundant check for 'list'

This commit is contained in:
okan 2015-06-05 14:54:04 +00:00
parent d9f38134be
commit f22a3b1065

2
menu.c
View File

@ -338,7 +338,7 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
int n, xsave, ysave;
if (mc->list) {
if (TAILQ_EMPTY(resultq) && mc->list) {
if (TAILQ_EMPTY(resultq)) {
/* Copy them all over. */
TAILQ_FOREACH(mi, menuq, entry)
TAILQ_INSERT_TAIL(resultq, mi,