diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c index 6e8caace5f..bf4dbf5493 100644 --- a/system/gcov/gcov.c +++ b/system/gcov/gcov.c @@ -57,6 +57,11 @@ int main(int argc, FAR char *argv[]) { int option; + if (argc < 2) + { + show_usage(argv[0]); + } + while ((option = getopt(argc, argv, "drh")) != ERROR) { switch (option)