From: Marc-André Lureau Date: Thu, 6 Sep 2018 13:37:36 +0000 (+0400) Subject: qom/object: fix iterating properties over a class X-Git-Tag: v3.1.0-rc0~64^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=684546d8e9b5adefa5b499d4371b83f9163593b6;p=thirdparty%2Fqemu.git qom/object: fix iterating properties over a class object_class_property_iter_init() starts from the given class, so the next class should continue with the parent class. Signed-off-by: Marc-André Lureau Reviewed-by: Paolo Bonzini --- diff --git a/qom/object.c b/qom/object.c index 9222b231727..9eaf08a53c3 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1115,7 +1115,7 @@ void object_class_property_iter_init(ObjectPropertyIterator *iter, ObjectClass *klass) { g_hash_table_iter_init(&iter->iter, klass->properties); - iter->nextclass = klass; + iter->nextclass = object_class_get_parent(klass); } ObjectProperty *object_class_property_find(ObjectClass *klass, const char *name,