Commit 43935932 authored by Carson McDonald's avatar Carson McDonald

Fix compiler warning by exiting if wfp isn't set

parent 95fb1fd8
...@@ -285,6 +285,10 @@ main(int argc, char **argv) ...@@ -285,6 +285,10 @@ main(int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }
else {
fprintf(stderr, "Output file is required\n");
return EXIT_FAILURE;
}
result = dump_file(mrb, wfp, args.outfile, &args); result = dump_file(mrb, wfp, args.outfile, &args);
fclose(wfp); fclose(wfp);
cleanup(mrb, &args); cleanup(mrb, &args);
......
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