From: unknown Date: Thu, 6 Nov 2008 17:03:59 +0000 (+0100) Subject: Fixed memory init problem for mod_dom in show records mode. X-Git-Tag: v2.0.36~24 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=7598c76f1a4989a91003bd4fbd90f30a7c7255ef;p=idzebra-moved-to-github.git Fixed memory init problem for mod_dom in show records mode. --- diff --git a/index/mod_dom.c b/index/mod_dom.c index 7ade71d..f16fba7 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1179,15 +1179,13 @@ static int convert_extract_doc(struct filter_info *tinfo, { xmlChar *buf_out; int len_out; + xmlDocDumpMemory(doc, &buf_out, &len_out); #if 0 FILE *outf = fopen("extract.xml", "w"); - xmlDocDumpMemory(doc, &buf_out, &len_out); fwrite(buf_out, 1, len_out, outf); -#endif - yaz_log(YLOG_LOG, "Extract Doc: %.*s", len_out, buf_out); -#if 0 fclose(outf); #endif + yaz_log(YLOG_LOG, "Extract Doc: %.*s", len_out, buf_out); } if (p->setStoreData)