summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-01-03 21:10:19 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-01-03 21:10:19 +0900
commit465ce1e52846cb0ab2ce711692e376b9cf027e66 (patch)
tree7480e26bec1a827de3f6c450ea6b68872f806dae /mrbgems/mruby-bin-debugger
parent2c4b0eeff84ab7549ca0c95390f5146f0366bcd9 (diff)
parentdf5f83cb848702117437215714c2f6c7b715cd49 (diff)
downloadmruby-465ce1e52846cb0ab2ce711692e376b9cf027e66.tar.gz
mruby-465ce1e52846cb0ab2ce711692e376b9cf027e66.zip
Merge pull request #2692 from cubicdaiya/error-handling-mrb-open
fixed error-handling for mrb_open().
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c b/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
index a0969a3ac..5396e645e 100755
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
@@ -651,13 +651,13 @@ main(int argc, char **argv)
mrb_debug_context* dbg_backup;
debug_command *cmd;
+ l_restart:
+
if (mrb == NULL) {
fputs("Invalid mrb_state, exiting mruby\n", stderr);
return EXIT_FAILURE;
}
- l_restart:
-
/* parse command parameters */
n = parse_args(mrb, argc, argv, &args);
if (n == EXIT_FAILURE || args.rfp == NULL) {