projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3d599
)
Fix 0 ptr reference for OPAC records from XML YAZ-822
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Feb 2015 12:01:32 +0000
(13:01 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Feb 2015 12:01:32 +0000
(13:01 +0100)
src/xml_match.c
patch
|
blob
|
history
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;
}