diff options
author | okan | 2015-06-05 14:54:04 +0000 |
---|---|---|
committer | okan | 2015-06-05 14:54:04 +0000 |
commit | a1cfe959b22953546e6de0ccb912120ce810160d (patch) | |
tree | bcb46fc79159763f3750d4c45a166b4c048a29a5 /menu.c | |
parent | 7c42f30d6e031e27a816bf7f9281ee48f7ab32ed (diff) | |
download | cwm-a1cfe959b22953546e6de0ccb912120ce810160d.tar.gz |
redundant check for 'list'
Diffstat (limited to '')
-rw-r--r-- | menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.79 2015/03/28 22:09:10 okan Exp $ + * $OpenBSD: menu.c,v 1.80 2015/06/05 14:54:04 okan Exp $ */ #include <sys/types.h> @@ -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, |