Skip to content
Snippets Groups Projects
Commit d462b50f authored by Jan Gerber's avatar Jan Gerber
Browse files

print error instead of printing uninitialized memory to terminal if no input is specified

parent d3435a6a
No related branches found
No related tags found
No related merge requests found
......@@ -2773,6 +2773,9 @@ int main(int argc, char **argv) {
outputfile_set=1;
}
optind++;
} else {
fprintf(stderr, "ERROR: no input specified\n");
exit(1);
}
if(optind<argc) {
fprintf(stderr, "WARNING: Only one input file supported, others will be ignored\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment