From 439359324d65083c706f25ae69a7f52051f2b627 Mon Sep 17 00:00:00 2001 From: Carson McDonald Date: Wed, 15 May 2013 09:02:27 -0400 Subject: Fix compiler warning by exiting if wfp isn't set --- tools/mrbc/mrbc.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3