diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-23 23:01:38 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-23 23:01:38 +0100 |
commit | 31d4bd72b9ba8b5d6b7ac3438a500639821ae25e (patch) | |
tree | 19b30af9c128e51403ea87a43486fba09f48345a /src/satq.c | |
parent | satrm (diff) | |
download | sat-31d4bd72b9ba8b5d6b7ac3438a500639821ae25e.tar.gz sat-31d4bd72b9ba8b5d6b7ac3438a500639821ae25e.tar.bz2 sat-31d4bd72b9ba8b5d6b7ac3438a500639821ae25e.tar.xz |
m fix
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/satq.c')
-rw-r--r-- | src/satq.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; |