]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Tolerate NULL 'cfg' in qemuDomainPrepareDiskSourceChain
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Apr 2018 13:54:18 +0000 (15:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:42:33 +0000 (15:42 +0200)
commit30a772170221f885e6d591bfc4e0cd2828e79dfc
tree4120e04e8d30ac2d0d0b7eb96073a6f248e6b0f4
parent1e81f198bfb4dec9ca2ba18b92eb5a8a90c4a9f4
qemu: domain: Tolerate NULL 'cfg' in qemuDomainPrepareDiskSourceChain

The function will be reused in the test code where we don't care much
that the gluster debug level can't be populated from the qemu config.

Set the level only when 'cfg' is passed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain.c