]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemuhotplug: Fix segfault when XML loading fails
authorCole Robinson <crobinso@redhat.com>
Thu, 29 Jun 2017 13:20:54 +0000 (09:20 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 26 Jul 2018 14:13:00 +0000 (10:13 -0400)
commitf14f0836c5e2f2df6d48495c0c0893c64b026b31
treee00efe022564a1ba1e1ae2e397f6804fb00cf1ef
parent8e2982b5767a25e5da6533c65bfdc648c95b3c69
tests: qemuhotplug: Fix segfault when XML loading fails

Some tests use the same VM state multiple times in a row. But if we
failed loading the VM XML, subsequent tests crash on the NULL def
pointer

Acked-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
tests/qemuhotplugtest.c