projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid specifying YAZ4J_DIR for win64
[yaz-moved-to-github.git]
/
src
/
xml_match.c
diff --git
a/src/xml_match.c
b/src/xml_match.c
index
0a9019a
..
7dddb6f
100644
(file)
--- a/
src/xml_match.c
+++ b/
src/xml_match.c
@@
-16,7
+16,8
@@
int yaz_match_xsd_element(xmlNodePtr ptr, const char *elem)
{
- if (ptr->type == XML_ELEMENT_NODE && !xmlStrcmp(ptr->name, BAD_CAST elem))
+ if (ptr && ptr->type == XML_ELEMENT_NODE &&
+ !xmlStrcmp(ptr->name, BAD_CAST elem))
{
return 1;
}