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

Martin Kletzander mkletzan at redhat.com
Mon Jan 26 16:24:28 UTC 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150126/c7e3e8c8/attachment-0001.sig>


More information about the libvir-list mailing list