提交 71ee25f5 编写于 作者: C Chen Hanxiao 提交者: Eric Blake

nodedev: fix a uninitialized variable build failure

Fix a -Werror=maybe-uninitialized warning
Signed-off-by: NChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 c6a4d268
...@@ -1349,7 +1349,7 @@ virNodeDevCapsDefParseXML(xmlXPathContextPtr ctxt, ...@@ -1349,7 +1349,7 @@ virNodeDevCapsDefParseXML(xmlXPathContextPtr ctxt,
{ {
virNodeDevCapsDefPtr caps; virNodeDevCapsDefPtr caps;
char *tmp; char *tmp;
int val, ret; int val, ret = -1;
if (VIR_ALLOC(caps) < 0) if (VIR_ALLOC(caps) < 0)
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册