that - otherwise, you get a "No valid input files" message, which
perhaps doesn't make it clear enough that the problem is that there were
no input files, period.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12410
f5534014-38df-0310-8fa8-
9805f1628bb7
fprintf(stderr, " run with -h for help\n");
exit(1);
}
+ if (in_file_count < 1) {
+ fprintf(stderr, "mergecap: No input files were specified\n");
+ exit(1);
+ }
/* open the input files */
in_file_count = merge_open_in_files(in_file_count, &argv[optind], &in_files, &err);