]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qom: set *ambiguous on all paths
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 2 Oct 2024 08:08:05 +0000 (12:08 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2024 20:04:24 +0000 (22:04 +0200)
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>
qom/object.c

index 0adbef29462d1b165a7e6994015717ba277ee331..222804dcfb547fa5fe65048cf4778660259f9247 100644 (file)
@@ -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);