From 167e7529e7deece2728b9b067737f7cd31c86521 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Jul 2016 18:18:07 -0400 Subject: Use calloc to allocate instances --- plugins/eg-amp.lv2/amp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/eg-amp.lv2/amp.c') diff --git a/plugins/eg-amp.lv2/amp.c b/plugins/eg-amp.lv2/amp.c index 2aa39c4..4aef8d4 100644 --- a/plugins/eg-amp.lv2/amp.c +++ b/plugins/eg-amp.lv2/amp.c @@ -1,5 +1,5 @@ /* - Copyright 2006-2011 David Robillard + Copyright 2006-2016 David Robillard Copyright 2006 Steve Harris Permission to use, copy, modify, and/or distribute this software for any @@ -76,7 +76,7 @@ instantiate(const LV2_Descriptor* descriptor, const char* bundle_path, const LV2_Feature* const* features) { - Amp* amp = (Amp*)malloc(sizeof(Amp)); + Amp* amp = (Amp*)calloc(1, sizeof(Amp)); return (LV2_Handle)amp; } -- cgit v1.2.1