X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxml_to_opac.c;h=139f12f7ed7cb757ac5b17610770b93f886122ec;hp=904e12dec34bdcf9cbd6376d1e5e07d0284b622e;hb=a7718c404d9f9317caf075a1d1bbacc1484018a7;hpb=473824797f568578dc17d7242551cb2f7ccef46c diff --git a/src/xml_to_opac.c b/src/xml_to_opac.c index 904e12d..139f12f 100644 --- a/src/xml_to_opac.c +++ b/src/xml_to_opac.c @@ -27,7 +27,7 @@ static int match_element_next(xmlNode **ptr, const char *elem, NMEM nmem, { while (*ptr && (*ptr)->type != XML_ELEMENT_NODE) (*ptr) = (*ptr)->next; - if (*ptr && yaz_match_xsd_string_n_nmem(*ptr, elem, nmem, val, 0)) + if (yaz_match_xsd_string_n_nmem(*ptr, elem, nmem, val, 0)) { *ptr = (*ptr)->next; return 1; @@ -42,7 +42,7 @@ static int match_v_next(xmlNode **ptr, const char *elem, NMEM nmem, while (*ptr && (*ptr)->type != XML_ELEMENT_NODE) (*ptr) = (*ptr)->next; *val = nmem_booldup(nmem, 0); - if (*ptr && yaz_match_xsd_element(*ptr, elem)) + if (yaz_match_xsd_element(*ptr, elem)) { struct _xmlAttr *attr = (*ptr)->properties;