nm-object: initialize the object buffer to zero

(cherry picked from commit df46c59775)
(cherry picked from commit b2059059fd)
This commit is contained in:
Lubomir Rintel 2016-10-18 14:49:30 +02:00 committed by Thomas Haller
parent 984c634cdb
commit 9be3e7df02

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;