From a66ad184022dd759335648d86f40e3c3ae68cf52 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 13 Jul 2016 02:35:20 +0200 Subject: initialize some uninitialized variables --- libs/plugins/a-eq.lv2/a-eq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/plugins/a-eq.lv2') diff --git a/libs/plugins/a-eq.lv2/a-eq.c b/libs/plugins/a-eq.lv2/a-eq.c index 6ee42ed270..dd49909242 100644 --- a/libs/plugins/a-eq.lv2/a-eq.c +++ b/libs/plugins/a-eq.lv2/a-eq.c @@ -128,7 +128,7 @@ instantiate(const LV2_Descriptor* descriptor, const char* bundle_path, const LV2_Feature* const* features) { - Aeq* aeq = (Aeq*)malloc(sizeof(Aeq)); + Aeq* aeq = (Aeq*)calloc(1, sizeof(Aeq)); aeq->srate = rate; #ifdef LV2_EXTENDED @@ -142,6 +142,8 @@ instantiate(const LV2_Descriptor* descriptor, for (int i = 0; i < BANDS; i++) linear_svf_reset(&aeq->v_filter[i]); + // TODO initialize self->v_ + aeq->need_expose = true; #ifdef LV2_EXTENDED aeq->display = NULL; -- cgit v1.2.3