]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: restore: Fix restoring of VM when the restore hook returns empty XML
authorPeter Krempa <pkrempa@redhat.com>
Wed, 22 Oct 2014 09:22:08 +0000 (11:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Oct 2014 15:51:31 +0000 (17:51 +0200)
commite38677993734e9af3dbd0589e1cecd0b75f7e757
treed7181d5ea83b0824f1d3b53a7a10e3a50450fbf7
parent0eeafeedebe4469fce33d7942551957853856619
qemu: restore: Fix restoring of VM when the restore hook returns empty XML

The documentation for the restore hook states that returning an empty
XML is equivalent with copying the input. There was a bug in the code
checking the returned string by checking the string instead of the
contents. Use the new helper to check if the string is empty.
src/qemu/qemu_driver.c