[libvirt] [PATCH] conf: forget goto error when the node->name is not valid
Luyao Huang
lhuang at redhat.com
Wed Feb 4 01:53:24 UTC 2015
Although it won't cause a issue now, the code won't
touch this place.
Signed-off-by: Luyao Huang <lhuang at redhat.com>
---
src/conf/domain_conf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 706e5d2..3a0b13e 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -8609,6 +8609,7 @@ virDomainChrDefParseXML(xmlXPathContextPtr ctxt,
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("unknown character device type: %s"),
nodeName);
+ goto error;
}
cur = node->children;
--
1.8.3.1
More information about the libvir-list
mailing list