issue: make test fail on mingw.

solution: initialize memory allocated.
This commit is contained in:
liyuray
2012-06-03 14:04:33 +08:00
parent e88e30524e
commit 5b3628051b
+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) {