qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 12/26] object: check strong flag with &


From: Marc-André Lureau
Subject: [PATCH 12/26] object: check strong flag with &
Date: Sun, 1 Dec 2019 15:15:17 +0400

The following patch is going to introduce more flags.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qom/object.c b/qom/object.c
index 55c690d62b..7e42fa0d99 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1789,7 +1789,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);
     }
-- 
2.24.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]