Fix a -Werror=maybe-uninitialized warring
Signed-off-by: Chen Hanxiao <chenhanxiao(a)cn.fujitsu.com>
---
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;
--
1.9.0