diff options
| author | Carson McDonald <[email protected]> | 2013-05-15 09:02:27 -0400 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-05-15 09:02:27 -0400 |
| commit | 439359324d65083c706f25ae69a7f52051f2b627 (patch) | |
| tree | 9ce6dc2f2b8cea7a820ae2b37a43c8cea9b35be0 | |
| parent | 95fb1fd809780e71848c339f8e3e035d1ae015d6 (diff) | |
| download | mruby-439359324d65083c706f25ae69a7f52051f2b627.tar.gz mruby-439359324d65083c706f25ae69a7f52051f2b627.zip | |
Fix compiler warning by exiting if wfp isn't set
| -rw-r--r-- | tools/mrbc/mrbc.c | 4 |
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); |
