initialize some uninitialized variables

This commit is contained in:
Robin Gareus 2016-07-13 02:35:20 +02:00
parent 28bb82cee7
commit a66ad18402
2 changed files with 4 additions and 1 deletions

View file

@ -35,6 +35,7 @@ PolyLine::PolyLine (Canvas* c)
PolyLine::PolyLine (Item* parent) PolyLine::PolyLine (Item* parent)
: PolyItem (parent) : PolyItem (parent)
, _threshold (1.0) , _threshold (1.0)
, _y1 (0)
{ {
} }

View file

@ -128,7 +128,7 @@ instantiate(const LV2_Descriptor* descriptor,
const char* bundle_path, const char* bundle_path,
const LV2_Feature* const* features) const LV2_Feature* const* features)
{ {
Aeq* aeq = (Aeq*)malloc(sizeof(Aeq)); Aeq* aeq = (Aeq*)calloc(1, sizeof(Aeq));
aeq->srate = rate; aeq->srate = rate;
#ifdef LV2_EXTENDED #ifdef LV2_EXTENDED
@ -142,6 +142,8 @@ instantiate(const LV2_Descriptor* descriptor,
for (int i = 0; i < BANDS; i++) for (int i = 0; i < BANDS; i++)
linear_svf_reset(&aeq->v_filter[i]); linear_svf_reset(&aeq->v_filter[i]);
// TODO initialize self->v_
aeq->need_expose = true; aeq->need_expose = true;
#ifdef LV2_EXTENDED #ifdef LV2_EXTENDED
aeq->display = NULL; aeq->display = NULL;