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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
>> ---
>> tests/domaincapstest.c  | 3 +++
>> tests/qemuhotplugtest.c | 3 ++-
>> tests/qemuxmlnstest.c   | 3 ++-
>> 3 files changed, 7 insertions(+), 2 deletions(-)
>>
> 
> ACK

Thanks, pushed.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]