projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4fe71
)
object: check strong flag with &
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Fri, 10 Jan 2020 15:30:25 +0000
(19:30 +0400)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 24 Jan 2020 19:59:13 +0000
(20:59 +0100)
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>
qom/object.c
patch
|
blob
|
history
diff --git
a/qom/object.c
b/qom/object.c
index 864281ececaa4e1dcf8a967dae41703d910d8f89..d7974e9844869567a472f99f7d5495fcb207ab18 100644
(file)
--- a/
qom/object.c
+++ b/
qom/object.c
@@
-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);
}