From 31d4bd72b9ba8b5d6b7ac3438a500639821ae25e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 23 Dec 2015 23:01:38 +0100 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satq.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/satq.c') diff --git a/src/satq.c b/src/satq.c index 6fafba4..f1c29b2 100644 --- a/src/satq.c +++ b/src/satq.c @@ -59,11 +59,8 @@ usage(void) int main(int argc, char *argv[]) { - if (argc > 1) { - usage(); - } else if (argc == 1) { - argv0 = argv[0]; - } + if (argc > 0) argv0 = argv[0]; + if (argc > 1) usage(); if (send_command(0, NULL)) return errno ? (perror(argv0), 1) : 3; -- cgit v1.2.3-70-g09d2