diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-14 05:57:03 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-14 05:57:03 -0700 |
| commit | 8cb31d9f99f1bf38621e4dd8c2a275196b43e6a9 (patch) | |
| tree | 8c1698cb6f4358b91037b732713a3e933635357f | |
| parent | 5b3d531d794c94c08c808a7d50309bdebe20bf56 (diff) | |
| parent | 66c5b0d3fa394126964fce30242b8d931fc3e475 (diff) | |
| download | mruby-8cb31d9f99f1bf38621e4dd8c2a275196b43e6a9.tar.gz mruby-8cb31d9f99f1bf38621e4dd8c2a275196b43e6a9.zip | |
Merge pull request #1374 from suzukaze/refactor-vm.c
Replace 0 with NULL because NULL is used in struct pointer.
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
