From: Dennis Schafroth Date: Thu, 20 May 2010 13:15:23 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2 X-Git-Tag: v1.4.1~6^2~1 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=ec22c4b0131db81c28977c78583277b9401629fd;hp=-c;p=pazpar2-moved-to-github.git Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2 --- ec22c4b0131db81c28977c78583277b9401629fd diff --combined src/session.c index 0c914ca,5302971..61f7e54 --- a/src/session.c +++ b/src/session.c @@@ -981,10 -981,7 +981,10 @@@ static int get_mergekey_from_doc(xmlDo if (!strcmp((const char *) n->name, "metadata")) { xmlChar *type = xmlGetProp(n, (xmlChar *) "type"); - if (!strcmp(name, (const char *) type)) + if (type == NULL) { + yaz_log(YLOG_FATAL, "Missing type attribute on metadata element. Skipping!"); + } + else if (!strcmp(name, (const char *) type)) { xmlChar *value = xmlNodeListGetString(doc, n->children, 1); if (value) @@@ -1143,6 -1140,7 +1143,7 @@@ static int ingest_to_cluster(struct cli \param cl client holds the result set for record \param rec record buffer (0 terminated) \param record_no record position (1, 2, ..) + \param nmem working NMEM \retval 0 OK \retval -1 failure */