summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorCarson McDonald <[email protected]>2013-05-15 09:02:27 -0400
committerCarson McDonald <[email protected]>2013-05-15 09:02:27 -0400
commit439359324d65083c706f25ae69a7f52051f2b627 (patch)
tree9ce6dc2f2b8cea7a820ae2b37a43c8cea9b35be0 /tools
parent95fb1fd809780e71848c339f8e3e035d1ae015d6 (diff)
downloadmruby-439359324d65083c706f25ae69a7f52051f2b627.tar.gz
mruby-439359324d65083c706f25ae69a7f52051f2b627.zip
Fix compiler warning by exiting if wfp isn't set
Diffstat (limited to 'tools')
-rw-r--r--tools/mrbc/mrbc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c
index 7cfee6eaf..44c456d7b 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -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);