Re: [Qemu-devel] [PATCH 6/8] qom: do not return root for empty path

2013-04-29 Thread Andreas Färber
Am 18.04.2013 18:44, schrieb Paolo Bonzini: > An empty path will return the sole object of that type in the > QOM tree. This is different from "/", which returns the root. > > Signed-off-by: Paolo Bonzini Looks OK to me, but not confident about callers' expectations. Might this need a documenta

[Qemu-devel] [PATCH 6/8] qom: do not return root for empty path

2013-04-18 Thread Paolo Bonzini
An empty path will return the sole object of that type in the QOM tree. This is different from "/", which returns the root. Signed-off-by: Paolo Bonzini --- qom/object.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/qom/object.c b/qom/object.c index 093502e..