From c90118ff602114f6c86ff916bc036c8d917f93c4 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 8 Nov 2017 18:57:59 +0100 Subject: [PATCH] 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. --- libnm/nm-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }