From 91344451a38a486fd190dc851c494c34eafd2420 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 27 May 2014 08:19:08 +0200 Subject: [PATCH] xbps-query: another argc fixup. --- bin/xbps-query/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-query/main.c b/bin/xbps-query/main.c index c1893e08..3d0c16a5 100644 --- a/bin/xbps-query/main.c +++ b/bin/xbps-query/main.c @@ -199,7 +199,7 @@ main(int argc, char **argv) argc -= optind; argv += optind; - if (argc == optind || (!argc && !opmode)) { + if (!argc && !opmode) { usage(true); } else if (!opmode) { /* show mode by default */