summaryrefslogtreecommitdiff
path: root/src/utils/xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r--src/utils/xml.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h
index 60c1c94c4..fe56917eb 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -41,8 +41,8 @@
reinterpret_cast<const xmlChar*>(str))
#define XmlTextWriterPtr xmlTextWriterPtr
#define xmlTypeEqual(node, typ) ((node)->type == (typ))
-#define XmlHasProp(node, name) xmlHasProp(node, \
- reinterpret_cast<const xmlChar*>(name))
+#define XmlHasProp(node, name) (xmlHasProp(node, \
+ reinterpret_cast<const xmlChar*>(name)) != nullptr)
#define XmlGetProp(node, name) xmlGetProp(node, \
reinterpret_cast<const xmlChar*>(name))
#define XmlTextWriterStartElement(writer, name) \