Re: [libvirt] [PATCH] Don't dereference NULL in qemumonitorjsontest

2013-09-20 Thread John Ferlan
On 09/20/2013 07:47 AM, Ján Tomko wrote: > In case of an error, qemuMonitorTestNewSimple returns NULL. > Error out instead of dereferencing it. > > Found by Coverity, reported by John Ferlan. > --- > Pushed as trivial. > > tests/qemumonitorjsontest.c | 6 ++ > 1 file changed, 6 insertions(+)

[libvirt] [PATCH] Don't dereference NULL in qemumonitorjsontest

2013-09-20 Thread Ján Tomko
In case of an error, qemuMonitorTestNewSimple returns NULL. Error out instead of dereferencing it. Found by Coverity, reported by John Ferlan. --- Pushed as trivial. tests/qemumonitorjsontest.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/qemumonitorjsontest.c b/tests/qemumoni