[Libosinfo] [libosinfo PATCH] tests: get the curl response code every time

Pavel Hrdina phrdina at redhat.com
Wed Nov 1 14:25:21 UTC 2017


On Wed, Nov 01, 2017 at 02:22:53PM +0000, Daniel P. Berrange wrote:
> On Wed, Nov 01, 2017 at 01:37:52PM +0000, Daniel P. Berrange wrote:
> > On Wed, Nov 01, 2017 at 02:35:16PM +0100, Pavel Hrdina wrote:
> > > This failed on FreeBSD with following error:
> > > 
> > > ../../tests/test-mediauris.c:47:13: error: variable 'response_code' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
> > > 
> > > Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> > > ---
> > >  tests/test-mediauris.c | 4 +---
> > >  1 file changed, 1 insertion(+), 3 deletions(-)
> > 
> > Reviewed-by: Daniel P. Berrange <berrange at redhat.com>
> 
> Turns out test-treeuris.c has the same bug, so I've pushed a followup doing
> the exact same fix there too

Should have checked that, thanks :)

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20171101/7f6ad028/attachment.sig>


More information about the Libosinfo mailing list