diff --git a/src/intcmp.c b/src/intcmp.c index 35fecf3..88356b4 100644 --- a/src/intcmp.c +++ b/src/intcmp.c @@ -44,10 +44,10 @@ int main(int argc, char *argv[]) { size_t i; unsigned char mode; int r; /* reference integer */ - program_name = (argv[0] == NULL ? program_name : argv[0]); - mode = 0; + program_name = (argv[0] == NULL ? program_name : argv[0]); + if (argc == 0) { return usage(program_name); } while ((c = getopt(argc, argv, "egl")) != -1) {