]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use qemuGetCompressionProgram for error paths
authorJohn Ferlan <jferlan@redhat.com>
Tue, 13 Sep 2016 14:11:00 +0000 (10:11 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 26 Sep 2016 11:44:42 +0000 (07:44 -0400)
commit48cb9f0542d70f9e3ac91b9b7d82fc9b85807b4e
tree3bc2aec023fcc83a777447ba7c0367a212709e16
parent4052ac27267dba48ab9936268a37a5a5f1ca1a2c
qemu: Use qemuGetCompressionProgram for error paths

Let's do some more code reuse - there are 3 other callers that care to
check/get the compress program. Each of those though cares whether the
requested cfg image is valid and exists. So, add a parameter to handle
those cases.

NB: We won't need to initialize the returned value in the case where
the cfg image doesn't exist since the called program will handle that.
src/qemu/qemu_driver.c