summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-14 07:38:43 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-14 07:38:43 +0900
commite3806922245c15ff9417ca4513c9052ebfa40021 (patch)
tree9160d9077dba3e15a024ad5bb1d5198dfc9edaf0 /tools
parent8e1c842b7e17ecb58e25e48e0cac253bceb00f14 (diff)
downloadmruby-e3806922245c15ff9417ca4513c9052ebfa40021.tar.gz
mruby-e3806922245c15ff9417ca4513c9052ebfa40021.zip
mrb_load_xxx to return undef + mrb_undef_p
Diffstat (limited to 'tools')
-rw-r--r--tools/mrbc/mrbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c
index a70353d63..a121eaa0e 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -179,7 +179,7 @@ main(int argc, char **argv)
c->dump_result = 1;
c->no_exec = 1;
result = mrb_load_file_cxt(mrb, args.rfp, c);
- if (mrb_nil_p(result)) {
+ if (mrb_undef_p(result)) {
cleanup(&args);
mrb_close(mrb);
return -1;