]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: qapi: Return correct entry in virQEMUQAPISchemaTraverse
authorPeter Krempa <pkrempa@redhat.com>
Wed, 21 Mar 2018 15:51:29 +0000 (16:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Mar 2018 13:52:07 +0000 (14:52 +0100)
commit3283950057cf1252c9358a99c8a5f2b8bac9631f
tree44dce7daedf93b299b81b02da96240b2f923911c
parent57cd22bc54e0220b6d36555c19cdfa2a65fa232b
qemu: qapi: Return correct entry in virQEMUQAPISchemaTraverse

virQEMUQAPISchemaTraverse would return previous-to-last queried item on
a query. It would not be a problem if checking if the given path exists
since error reporting works properly but if the caller is interested in
the result, it would be wrong.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_qapi.c