summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2015-06-05 14:54:05 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2015-06-05 14:54:05 +0000
commitcc4a45ad282f15a969b28ba3129bbb55c24e2d68 (patch)
tree8b3ea4b4b41676c1461bf42df4df655bf829f792 /app
parent471746476774a944bb4232eea4d4b4140b537b80 (diff)
redundant check for 'list'
Diffstat (limited to 'app')
-rw-r--r--app/cwm/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c
index 7c9cce802..e5e992ba5 100644
--- a/app/cwm/menu.c
+++ b/app/cwm/menu.c
@@ -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,