mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-19 12:40:42 +01:00
nm-object: initialize the object buffer to zero
(cherry picked from commitdf46c59775) (cherry picked from commitb2059059fd)
This commit is contained in:
parent
984c634cdb
commit
9be3e7df02
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue