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>
master
Marc-André Lureau 2020-01-10 19:30:25 +04:00 committed by Paolo Bonzini
parent fc4fe712ae
commit 8770bafdc9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}