mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00: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);
|
||||
|
||||
if (!(*ret))
|
||||
if (!ret)
|
||||
virReportError(VIR_ERR_XML_ERROR,
|
||||
_("Missing required attribute '%s' in element '%s'"),
|
||||
name, node->name);
|
||||
|
Loading…
Reference in New Issue
Block a user