Merge pull request #236 from liyuray/master

fix an issue that access violation occurred on uninitialized irep block when running "make test" on MINGW.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2012-06-02 23:33:56 -07:00
+1
View File
@@ -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) {