]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add return value check
authorAlex Jia <ajia@redhat.com>
Wed, 28 Sep 2011 08:00:49 +0000 (16:00 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 28 Sep 2011 17:06:34 +0000 (11:06 -0600)
commitb6dd366ad2dfc8478d124c4f04978829fc0093d5
tree15826119c4094730d436b8a90619a6f65c326268
parent4ee8092dde8b2f017dd862159f8c70fb4092b721
qemu: add return value check

* src/qemu/qemu_migration.c: if 'vmdef' is NULL, the function
  virDomainSaveConfig still dereferences it, it doesn't make
  sense, so should add return value check to make sure 'vmdef'
  is non-NULL before calling virDomainSaveConfig, in addition,
  in order to debug later, also should record error information
  into log.

Signed-off-by: Alex Jia <ajia@redhat.com>
src/qemu/qemu_migration.c