diff --git a/main/gbc/gbc_class.c b/main/gbc/gbc_class.c index 19121cc9d..f1729c20a 100644 --- a/main/gbc/gbc_class.c +++ b/main/gbc/gbc_class.c @@ -372,7 +372,7 @@ void CLASS_add_event(CLASS *class, TRANS_EVENT *decl) if (event->nparam) { - ALLOC(&event->param, decl->nparam * sizeof(PARAM)); + ALLOC_ZERO(&event->param, decl->nparam * sizeof(PARAM)); for (i = 0; i < decl->nparam; i++) {