X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fmod_dom.c;h=de2a872ec4fd3a8c157069b4b064b8ac2bd36158;hp=ea55b902e4959df339de298297b1d14880daebad;hb=a5c8c78e8671af863fc61b2ad8b24f92f827f7b2;hpb=f6e9c4d6c5480b68a703b0aeccf9ba27db68cdea diff --git a/index/mod_dom.c b/index/mod_dom.c index ea55b90..de2a872 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 Index Data + Copyright (C) 1994-2011 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -1467,7 +1470,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; } @@ -1561,7 +1564,7 @@ static struct recType filter_type = { }; RecType -#ifdef IDZEBRA_STATIC_DOM +#if IDZEBRA_STATIC_DOM idzebra_filter_dom #else idzebra_filter