[libvirt] [PATCH] tests: Check for virQEMUDriverConfigNew return value

Michal Privoznik mprivozn at redhat.com
Mon Jan 26 16:43:27 UTC 2015


On 26.01.2015 17:24, Martin Kletzander wrote:
> On Mon, Jan 26, 2015 at 05:12:25PM +0100, Michal Privoznik wrote:
>> The function may return NULL if something went wrong. In some places
>> in the tests we are not checking the return value rather than
>> accessing the pointer directly resulting in SIGSEGV.
>>
>> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>> ---
>> tests/domaincapstest.c  | 3 +++
>> tests/qemuhotplugtest.c | 3 ++-
>> tests/qemuxmlnstest.c   | 3 ++-
>> 3 files changed, 7 insertions(+), 2 deletions(-)
>>
> 
> ACK

Thanks, pushed.

Michal




More information about the libvir-list mailing list