mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
ee510704a9
commit
d9e9867374
|
@ -2201,6 +2201,9 @@ Object *object_resolve_path_type(const char *path, const char *typename,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
obj = object_resolve_abs_path(object_get_root(), parts + 1, typename);
|
obj = object_resolve_abs_path(object_get_root(), parts + 1, typename);
|
||||||
|
if (ambiguous) {
|
||||||
|
*ambiguous = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev(parts);
|
g_strfreev(parts);
|
||||||
|
|
Loading…
Reference in New Issue