qemu-devel
[Top][All Lists]
Advanced

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

[PULL 42/59] object: check strong flag with &


From: Paolo Bonzini
Subject: [PULL 42/59] object: check strong flag with &
Date: Thu, 23 Jan 2020 14:48:45 +0100

From: Marc-André Lureau <address@hidden>

The following patch is going to introduce more flags.

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

diff --git a/qom/object.c b/qom/object.c
index 30c4f82..fb80013 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1822,7 +1822,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);
     }
-- 
1.8.3.1





reply via email to

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