]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't dereference NULL in qemumonitorjsontest
authorJán Tomko <jtomko@redhat.com>
Fri, 20 Sep 2013 11:02:43 +0000 (13:02 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 20 Sep 2013 11:46:13 +0000 (13:46 +0200)
commit5b36ab900ad43226ce3bf27a55a2a3714df188fb
tree639b15d711b21147343f87a58a882d72bca6a225
parent83c24493df40a87275db2b4a0392e280fe61406f
Don't dereference NULL in qemumonitorjsontest

In case of an error, qemuMonitorTestNewSimple returns NULL.
Error out instead of dereferencing it.

Found by Coverity, reported by John Ferlan.
tests/qemumonitorjsontest.c