Make sure these are initialized.

This commit is contained in:
Hisham Muhammad 2015-02-04 11:40:44 -02:00
parent d7c843c23b
commit 6302b3e593

View File

@ -170,6 +170,8 @@ MetersPanel* MetersPanel_new(Settings* settings, const char* header, Vector* met
this->meters = meters;
this->scr = scr;
this->moving = false;
this->rightNeighbor = NULL;
this->leftNeighbor = NULL;
Panel_setHeader(super, header);
for (int i = 0; i < Vector_size(meters); i++) {
Meter* meter = (Meter*) Vector_get(meters, i);