From: Adam Dickmeiss Date: Wed, 28 Oct 2009 11:37:08 +0000 (+0100) Subject: mod_dom: fix error handling for no retrieve elems X-Git-Tag: v2.0.43~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=95f8991b4c687a0d99a1e8751ef5aeeb7f6831bc;p=idzebra-moved-to-github.git mod_dom: fix error handling for no retrieve elems --- diff --git a/index/mod_dom.c b/index/mod_dom.c index ea55b90..f4b17ed 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1467,7 +1467,7 @@ static int filter_retrieve(void *clientData, struct recRetrieveCtrl *p) { p->diagnostic = YAZ_BIB1_SPECIFIED_ELEMENT_SET_NAME_NOT_VALID_FOR_SPECIFIED_; - p->addinfo = odr_strdup(p->odr, esn); + p->addinfo = odr_strdup_null(p->odr, esn); return 0; }