summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
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 8698086ff..2736197c8 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -215,6 +215,10 @@ main(int argc, char **argv)
}
if (args.initname) {
n = mrb_dump_irep_cfunc(mrb, n, args.debug_info, args.wfp, args.initname);
+ if (n == MRB_DUMP_INVALID_ARGUMENT) {
+ printf("%s: Invalid C language symbol name\n", args.initname);
+ return EXIT_FAILURE;
+ }
}
else {
n = mrb_dump_irep_binary(mrb, n, args.debug_info, args.wfp);