diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-03 15:34:09 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-03 15:34:09 +0900 |
| commit | 60e8d80fa722008fc1a2adcc258087702f9e58c6 (patch) | |
| tree | 5a3a1a2b574badd0b701238041f46a4949b0ef39 | |
| parent | 5b47ec7a8bbe913b89e8432579bde7965bd37084 (diff) | |
| parent | c9227e44fbbbaed6e6da6fed3dd4c2a1b55b9f72 (diff) | |
| download | mruby-60e8d80fa722008fc1a2adcc258087702f9e58c6.tar.gz mruby-60e8d80fa722008fc1a2adcc258087702f9e58c6.zip | |
Merge branch 'master' of github.com:mruby/mruby
| -rw-r--r-- | src/state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index b3946bad9..727bd8ecb 100644 --- a/src/state.c +++ b/src/state.c @@ -76,6 +76,7 @@ mrb_add_irep(mrb_state *mrb, int idx) if (idx > max) max = idx+1; mrb->irep = mrb_malloc(mrb, sizeof(mrb_irep*)*max); + memset(mrb->irep, 0, sizeof(mrb_irep*)*max); mrb->irep_capa = max; } else if (mrb->irep_capa <= idx) { |
