From 78582dd5e9cb5cdc0a75a58e1a5c85f4416c8226 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 25 Dec 2016 06:19:34 +0100 Subject: [PATCH] tests: Fix logic to detect argument length --- tests/rendernode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rendernode.c b/tests/rendernode.c index 4388e79ff4..5222b7b741 100644 --- a/tests/rendernode.c +++ b/tests/rendernode.c @@ -32,7 +32,7 @@ main(int argc, char **argv) return 1; } - if (argc != 3 && (argc != 2 && (dump_variant || benchmark))) + if (!(argc == 3 || (argc == 2 && (dump_variant || benchmark)))) { g_printerr ("Usage: %s [OPTIONS] NODE-FILE PNG-FILE\n", argv[0]); return 1;