fixed: return 1 if no input files specified

This commit is contained in:
Sven Vogel 2024-05-30 21:46:44 +02:00
parent cb8c7647bf
commit d60ebd6812
1 changed files with 5 additions and 0 deletions

View File

@ -122,6 +122,11 @@ int main(int argc, char *argv[]) {
print_file_statistics(file); print_file_statistics(file);
} }
if (files.files == NULL) {
printf("No input files, nothing to do.\n\n");
exit(1);
}
print_unit_statistics(&files); print_unit_statistics(&files);
delete_files(&files); delete_files(&files);