On 07/28/2014 08:05 PM, Chen Hanxiao wrote: > Fix a -Werror=maybe-uninitialized warring s/warring/warning/ Uninitialized only if caps->type is out-of-bounds from its enum type. ACK and pushed. > > Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx> > --- > src/conf/node_device_conf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c > index 78bc63f..96524a6 100644 > --- a/src/conf/node_device_conf.c > +++ b/src/conf/node_device_conf.c > @@ -1349,7 +1349,7 @@ virNodeDevCapsDefParseXML(xmlXPathContextPtr ctxt, > { > virNodeDevCapsDefPtr caps; > char *tmp; > - int val, ret; > + int val, ret = -1; > > if (VIR_ALLOC(caps) < 0) > return NULL; > -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list