From 8770bafdc96727a7b87216221ec81c792b8b2857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 10 Jan 2020 19:30:25 +0400 Subject: [PATCH] object: check strong flag with & MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following patch is going to introduce more flags. Signed-off-by: Marc-André Lureau Message-Id: <20200110153039.1379601-13-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- qom/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index 864281ecec..d7974e9844 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1806,7 +1806,7 @@ static void object_set_link_property(Object *obj, Visitor *v, } *child = new_target; - if (prop->flags == OBJ_PROP_LINK_STRONG) { + if (prop->flags & OBJ_PROP_LINK_STRONG) { object_ref(new_target); object_unref(old_target); }