Skip to content

Commit

Permalink
object: check strong flag with &
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and bonzini committed Jan 24, 2020
1 parent fc4fe71 commit 8770baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qom/object.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8770baf

Please sign in to comment.