Merge pull request #1374 from suzukaze/refactor-vm.c

Replace 0 with NULL because NULL is used in struct pointer.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-07-14 05:57:03 -07:00
+1 -1
View File
@@ -174,7 +174,7 @@ uvenv(mrb_state *mrb, int up)
struct REnv *e = mrb->c->ci->proc->env;
while (up--) {
if (!e) return 0;
if (!e) return NULL;
e = (struct REnv*)e->c;
}
return e;