[libvirt] [PATCH 16/26] network: Resolve Coverity FORWARD_NULL

Peter Krempa pkrempa at redhat.com
Thu Sep 11 09:20:10 UTC 2014


On 09/05/14 00:26, John Ferlan wrote:
> If the VIR_STRDUP(exptime,...) fails, then we will jump to cleanup,
> no need to check if exptime is set which causes Coverity to issue
> a complaint in the virStrToLong_ll call because there wasn't a check
> for a NULL value while there was one for the reference right after
> the VIR_STRDUP().
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/network/leaseshelper.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 


ACK




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


More information about the libvir-list mailing list