[libvirt] [PATCH 1/7] hellolibvirt: Resolve Coverity issues

2013-07-11 Thread John Ferlan
Recent changes uncovered a NEGATIVE_RETURNS when processing 'numNames' in 'showDomains' in the for loop after a possible -1 return. --- examples/hellolibvirt/hellolibvirt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/examples/hellolibvirt/hellolibvirt.c

Re: [libvirt] [PATCH 1/7] hellolibvirt: Resolve Coverity issues

2013-07-11 Thread Daniel P. Berrange
On Thu, Jul 11, 2013 at 08:34:01AM -0400, John Ferlan wrote: Recent changes uncovered a NEGATIVE_RETURNS when processing 'numNames' in 'showDomains' in the for loop after a possible -1 return. --- examples/hellolibvirt/hellolibvirt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [libvirt] [PATCH 1/7] hellolibvirt: Resolve Coverity issues

2013-07-11 Thread Eric Blake
On 07/11/2013 06:34 AM, John Ferlan wrote: Recent changes uncovered a NEGATIVE_RETURNS when processing 'numNames' in 'showDomains' in the for loop after a possible -1 return. --- examples/hellolibvirt/hellolibvirt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git