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

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

 



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

Attachment: pgpjkD4Av3xQ5.pgp
Description: PGP signature

--
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]