mod_dom: fix error handling for no retrieve elems
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Oct 2009 11:37:08 +0000 (12:37 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Oct 2009 11:37:08 +0000 (12:37 +0100)
index/mod_dom.c

index ea55b90..f4b17ed 100644 (file)
@@ -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;
     }