Replace 0 with NULL because NULL is used in struct pointer.

This commit is contained in:
Jun Hiroe
2013-07-14 00:01:08 +09:00
parent 5b3d531d79
commit 66c5b0d3fa
+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;