redundant check for 'list'
This commit is contained in:
2
menu.c
2
menu.c
@@ -338,7 +338,7 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
|
|||||||
int n, xsave, ysave;
|
int n, xsave, ysave;
|
||||||
|
|
||||||
if (mc->list) {
|
if (mc->list) {
|
||||||
if (TAILQ_EMPTY(resultq) && mc->list) {
|
if (TAILQ_EMPTY(resultq)) {
|
||||||
/* Copy them all over. */
|
/* Copy them all over. */
|
||||||
TAILQ_FOREACH(mi, menuq, entry)
|
TAILQ_FOREACH(mi, menuq, entry)
|
||||||
TAILQ_INSERT_TAIL(resultq, mi,
|
TAILQ_INSERT_TAIL(resultq, mi,
|
||||||
|
|||||||
Reference in New Issue
Block a user