summary refs log tree commit diff
path: root/libnm/nm-object.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-11-10 19:02:08 +0100
committerMichael Biebl <biebl@debian.org>2017-11-10 19:02:08 +0100
commit417f6015c3dc8c47cf27daa59f64e0e36c521b9c (patch)
tree1bec2cd2b25a902a4e2e1ff8cfe39e66a5a97704 /libnm/nm-object.c
parent90e8691111889a7b5f3c812f5a41f15a8a058913 (diff)
New upstream version 1.10.0 upstream/1.10.0
Diffstat (limited to 'libnm/nm-object.c')
-rw-r--r--libnm/nm-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c
index ef335862..c344a08d 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);
 }