From 5b3628051b975a899082ec25847100ad2b291564 Mon Sep 17 00:00:00 2001 From: liyuray Date: Sun, 3 Jun 2012 14:04:33 +0800 Subject: issue: make test fail on mingw. solution: initialize memory allocated. --- src/state.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) { -- cgit v1.2.3