mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
object: check strong flag with &
The following patch is going to introduce more flags. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200110153039.1379601-13-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fc4fe712ae
commit
8770bafdc9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue