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
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment