[libvirt] [PATCH] Properly check the return value of CCWAddressAsString
Peter Krempa
pkrempa at redhat.com
Mon Jun 23 06:42:30 UTC 2014
On 06/23/14 08:36, Ján Tomko wrote:
> It returns NULL on failure. Checking if the negation of it
> is less than zero makes no sense. (Found by coverity after moving
> the code)
>
> In another case, the return value wasn't checked at all.
> ---
> src/conf/domain_addr.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
ACK,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140623/d9a481c5/attachment-0001.sig>
More information about the libvir-list
mailing list