From 95f8991b4c687a0d99a1e8751ef5aeeb7f6831bc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 28 Oct 2009 12:37:08 +0100 Subject: [PATCH] mod_dom: fix error handling for no retrieve elems --- index/mod_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.4