qom/object: fix -Werror=maybe-uninitialized
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 24 Sep 2024 12:54:34 +0000 (16:54 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 2 Oct 2024 12:14:29 +0000 (16:14 +0400)
commit8f3375434d45e56db51b5ecd4d8a929146ba5641
treea6d769bce6662b4989c0de7f0793993aac18453f
parent79660687df4ed99117cda77012a8a39616cc6b45
qom/object: fix -Werror=maybe-uninitialized

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