Permalink
Browse files

Merge pull request #713 from gao-yan/potential-use-of-null

Fix: xml: Prevent potential use-of-NULL
  • Loading branch information...
beekhof committed May 18, 2015
2 parents 2135206 + b207154 commit 677f53216662d121a47b4c7683ec3749c614437e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/common/xml.c
View
@@ -3416,7 +3416,7 @@ dump_xml_attr(xmlAttrPtr attr, int options, char **buffer, int *offset, int *max
}
p = attr->_private;
if (is_set(p->flags, xpf_deleted)) {
if (p && is_set(p->flags, xpf_deleted)) {
return;
}

0 comments on commit 677f532

Please sign in to comment.