diff --git a/src/main.c b/src/main.c index 0b75508..4888ee5 100644 --- a/src/main.c +++ b/src/main.c @@ -122,6 +122,11 @@ int main(int argc, char *argv[]) { print_file_statistics(file); } + if (files.files == NULL) { + printf("No input files, nothing to do.\n\n"); + exit(1); + } + print_unit_statistics(&files); delete_files(&files);