]> xenbits.xensource.com Git - libvirt.git/commit
conf: Fix mistakes in pointer usage in virDomainObjGetDefs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 11:20:12 +0000 (13:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 12:03:38 +0000 (14:03 +0200)
commitf9ab9effc559f63754805c4fc7d090bef495b8d9
tree64bf1b600d0b76a174a86aacaa3c16aa4224ce84
parentf833c70b85993f024be4afc4dfbfc2fb9c2d6cd9
conf: Fix mistakes in pointer usage in virDomainObjGetDefs

Coverity rightfully determined that in commit 3d021381c71221e563182f03
I made a mistake in the first check if @persDef is not NULL is
dereferencing it rather than checking.

Additionally if the vm is online the code would set @liveDef twice
rather than modifying @persDef. Fix both mistakes.
src/conf/domain_conf.c