From b7f2918fbd7acd9203e8212cd711c8c28c00d6f3 Mon Sep 17 00:00:00 2001 From: gambas Date: Tue, 8 Oct 2019 09:12:12 +0200 Subject: [PATCH] Correctly generate metadata file for events so that there is no spurious ByRef arguments anymore. [COMPILER] * BUG: Correctly generate metadata file for events so that there is no spurious ByRef arguments anymore. --- main/gbc/gbc_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {