Fix compiler warning by exiting if wfp isn't set

This commit is contained in:
Carson McDonald
2013-05-15 09:02:27 -04:00
parent 95fb1fd809
commit 439359324d
+4
View File
@@ -285,6 +285,10 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
}
else {
fprintf(stderr, "Output file is required\n");
return EXIT_FAILURE;
}
result = dump_file(mrb, wfp, args.outfile, &args);
fclose(wfp);
cleanup(mrb, &args);