]> git.ipfire.org Git - thirdparty/libvirt.git/commit
More coverity findings addressed
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 27 Apr 2012 21:25:35 +0000 (17:25 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 27 Apr 2012 21:25:35 +0000 (17:25 -0400)
commit59b935f5ae92e0833e71cc3b490cf1e24eee43fb
tree00cca4a1c624d8049ab63701f3ad0af63b68fdac
parent2eabac008e80507c7d623c32b89d793bc5e86f7c
More coverity findings addressed

More bug extermination in the category of:

Error: CHECKED_RETURN:

/libvirt/src/conf/network_conf.c:595:
check_return: Calling function "virAsprintf" without checking return value (as is done elsewhere 515 out of 543 times).

/libvirt/src/qemu/qemu_process.c:2780:
unchecked_value: No check of the return value of "virAsprintf(&msg, "was paused (%s)", virDomainPausedReasonTypeToString(reason))".

/libvirt/tests/commandtest.c:809:
check_return: Calling function "setsid" without checking return value (as is done elsewhere 4 out of 5 times).

/libvirt/tests/commandtest.c:830:
unchecked_value: No check of the return value of "virTestGetDebug()".

/libvirt/tests/commandtest.c:831:
check_return: Calling function "virTestGetVerbose" without checking return value (as is done elsewhere 41 out of 42 times).

/libvirt/tests/commandtest.c:833:
check_return: Calling function "virInitialize" without checking return value (as is done elsewhere 18 out of 21 times).

One note about the error in commandtest line 809: setsid() seems to fail when running the test -- could be removed ?
src/conf/network_conf.c
src/qemu/qemu_process.c
tests/commandtest.c