]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Resolve Coverity UNINIT
authorJohn Ferlan <jferlan@redhat.com>
Sat, 15 Aug 2015 13:15:42 +0000 (09:15 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 15 Aug 2015 19:53:26 +0000 (15:53 -0400)
commitc4cfc0d0377c6ec455e9c01cbe6583a6ab966c59
treedbcbbf468fd7e7782e17c9be4b5f239a8fc86e5f
parente4c8b67024776a3fbc4b77d98beb6cbf5b9cb726
qemu: Resolve Coverity UNINIT

Coverity complained that 'vm' wasn't initialized before jumping to
cleanup: and calling virDomainObjEndAPI if the VIR_STRDUP fails.
So I initialized vm = NULL and also moved the VIR_STRDUP closer to
usage and used endjob for goto. Lots of other reasons for failures.
src/qemu/qemu_driver.c