]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity UNINIT
authorJohn Ferlan <jferlan@redhat.com>
Sat, 15 Nov 2014 13:09:53 +0000 (08:09 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 15 Nov 2014 13:09:53 +0000 (08:09 -0500)
commit121fc4f9f331cc85cfc4c85c99b2cbf7ea5c53ac
tree505d551f9f86e04b8eb48015d362e026d9f6bcf3
parent72b4151f858df3564b82a8ebba60778b996b6dce
qemu: Resolve Coverity UNINIT

For some reason, commit id '72b4151f' triggered a Coverity uninitialized
'reply' variable check when referenced within the for loop.

It seems Coverity doesn't know that flags will have to be either AFFECT_LIVE
or AFFECT_CONFIG after the virDomainLiveConfigHelperMethod call.

By adding a "sa_assert()" to confirm that fact, Coverity is happy again.
src/qemu/qemu_driver.c