Commit c8c4dfe4 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1255 from carsonmcdonald/mrbcoutwarnfix

Fix compiler warning by exiting if wfp isn't set
parents 95fb1fd8 43935932
......@@ -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);
......
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