fixed: return 1 if no input files specified
This commit is contained in:
parent
cb8c7647bf
commit
d60ebd6812
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue