[libvirt] [PATCH] Properly check the return value of CCWAddressAsString

Ján Tomko jtomko at redhat.com
Mon Jun 23 07:06:14 UTC 2014


On 06/23/2014 08:42 AM, Peter Krempa wrote:
> 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,
> 

Thanks, pushed.

Jan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140623/c9263308/attachment-0001.sig>


More information about the libvir-list mailing list