]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu_driver: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 16:49:30 +0000 (12:49 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 23:18:52 +0000 (19:18 -0400)
commit5c0dad7b39c3e52a2336ae0e7c982bb0c6da250d
treeced0a33aefe0e144092a2688309eb33c28a0a02d
parente387f4c1f15e2e1a4582d7751c6f9d4dfef4b5ce
qemu_driver: Resolve Coverity FORWARD_NULL

In qemuDomainSnapshotCreateDiskActive() if we jumped to cleanup from a
failed actions = virJSONValueNewArray(), then 'cfg' would be NULL.

So just return -1, which in turn removes the need for cleanup:
src/qemu/qemu_driver.c