mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix null pointer dereference in virXMLPropStringRequired
Fixes: 65eaf58335
Signed-off-by: Gedalya <gedalya@gedalya.net>
This commit is contained in:
parent
35afa1d2d6
commit
b9315159f5
@ -320,7 +320,7 @@ virXMLPropStringRequired(xmlNodePtr node,
|
|||||||
{
|
{
|
||||||
char *ret = virXMLPropString(node, name);
|
char *ret = virXMLPropString(node, name);
|
||||||
|
|
||||||
if (!(*ret))
|
if (!ret)
|
||||||
virReportError(VIR_ERR_XML_ERROR,
|
virReportError(VIR_ERR_XML_ERROR,
|
||||||
_("Missing required attribute '%s' in element '%s'"),
|
_("Missing required attribute '%s' in element '%s'"),
|
||||||
name, node->name);
|
name, node->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user