diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-10-02 12:08:05 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-03 22:04:24 +0200 |
commit | d9e9867374e5975dfa492c8fbcef39048985e32c (patch) | |
tree | 1b09c7b31586b96657091391e4cc3dc2cad952af | |
parent | ee510704a9f6c982e2740db816eeac325cc10c57 (diff) | |
download | qemu-d9e9867374e5975dfa492c8fbcef39048985e32c.zip qemu-d9e9867374e5975dfa492c8fbcef39048985e32c.tar.gz qemu-d9e9867374e5975dfa492c8fbcef39048985e32c.tar.bz2 |
qom: set *ambiguous on all paths
So the caller contract is simpler.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Link: https://lore.kernel.org/r/20241002080806.2868406-3-marcandre.lureau@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | qom/object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qom/object.c b/qom/object.c index 0adbef2..222804d 100644 --- a/qom/object.c +++ b/qom/object.c @@ -2201,6 +2201,9 @@ Object *object_resolve_path_type(const char *path, const char *typename, } } else { obj = object_resolve_abs_path(object_get_root(), parts + 1, typename); + if (ambiguous) { + *ambiguous = false; + } } g_strfreev(parts); |