diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-11-08 18:57:59 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-11-09 10:12:15 +0100 |
commit | c90118ff602114f6c86ff916bc036c8d917f93c4 (patch) | |
tree | 544b32855da760506a7c7221b9dc2b2344f9541e | |
parent | a5b4850682d6eb34be65583d86ebb989f65a89cc (diff) | |
download | NetworkManager-c90118ff602114f6c86ff916bc036c8d917f93c4.tar.gz |
libnm: don't invert order in array properties
The order of elements in array properties was inverted when
reconstructing the array. Keep the original order from D-Bus.
-rw-r--r-- | libnm/nm-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c index ef3358627e..c344a08dca 100644 --- a/libnm/nm-object.c +++ b/libnm/nm-object.c @@ -572,7 +572,7 @@ object_created (GObject *obj, const char *path, gpointer user_data) object_class->object_creation_failed (odata->self, path); } - odata->objects[--odata->remaining] = obj ? g_object_ref (obj) : NULL; + odata->objects[odata->length - odata->remaining--] = obj ? g_object_ref (obj) : NULL; object_property_maybe_complete (odata->self); } |