From 7598c76f1a4989a91003bd4fbd90f30a7c7255ef Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 6 Nov 2008 18:03:59 +0100 Subject: [PATCH] Fixed memory init problem for mod_dom in show records mode. --- index/mod_dom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 1.7.10.4