nm-object: initialize the object buffer to zero

This commit is contained in:
Lubomir Rintel 2016-10-18 14:49:30 +02:00
parent 2481eaac15
commit df46c59775

View file

@ -860,7 +860,7 @@ handle_object_property (NMObject *self, const char *property_name, GVariant *val
odata = g_slice_new (ObjectCreatedData);
odata->self = g_object_ref (self);
odata->pi = pi;
odata->objects = g_new (GObject *, 1);
odata->objects = g_new0 (GObject *, 1);
odata->length = odata->remaining = 1;
odata->array = NULL;
odata->property_name = property_name;