projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7966068
)
qom/object: fix -Werror=maybe-uninitialized
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Tue, 24 Sep 2024 12:54:34 +0000
(16:54 +0400)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 2 Oct 2024 12:14:29 +0000
(16:14 +0400)
object_resolve_path_type() sets *ambiguousp only when it is.
Fixes: 81c48dd79655 (hw/i386/acpi: Add object_resolve_type_unambiguous to improve modularity)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
qom/object.c
patch
|
blob
|
history
diff --git
a/qom/object.c
b/qom/object.c
index 28c5b66eab525196c256e9dd8175bd4990a64695..d3d300354158e3bf7bd8dc4783d04c5103fe0464 100644
(file)
--- a/
qom/object.c
+++ b/
qom/object.c
@@
-2226,7
+2226,7
@@
Object *object_resolve_path_at(Object *parent, const char *path)
Object *object_resolve_type_unambiguous(const char *typename, Error **errp)
{
- bool ambig;
+ bool ambig
= false
;
Object *o = object_resolve_path_type("", typename, &ambig);
if (ambig) {