]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domainsnapshotxml2xmltest: Clean up labels and use bool instead of int
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Dec 2013 12:49:40 +0000 (13:49 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Dec 2013 08:40:13 +0000 (09:40 +0100)
commitaf75de308f0f491f8be55917f58f3faa700108cc
treea4f63c6fbf52291b546e9d720ccc20bce5c6269d
parent62774afb6ba854abe253410ef34dc3c0b30e5dbd
domainsnapshotxml2xmltest: Clean up labels and use bool instead of int

The 'internal' variable holds only two states; convert it to a boolean
and the 'fail' label should be called 'cleanup'. This patch also fixes a
minor memory leak of driver capabilities in case the XML config object
can't be allocated.
tests/domainsnapshotxml2xmltest.c