From 1995ca9c4d5451771944163fc302d21578055241 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 6 Mar 2007 08:48:57 +0000 Subject: [PATCH] Fixed bug #946: Coredump on MARC display. --- index/mod_dom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index/mod_dom.c b/index/mod_dom.c index a2e83c7..d938532 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1,5 +1,5 @@ -/* $Id: mod_dom.c,v 1.27 2007-03-05 13:02:11 marc Exp $ +/* $Id: mod_dom.c,v 1.28 2007-03-06 08:48:57 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -363,7 +363,7 @@ static ZEBRA_RES perform_convert(struct filter_info *tinfo, *doc = xmlParseMemory((const char *) buf_out, len_out); /* writing debug info out */ - if (extctr->flagShowRecords) + if (extctr && extctr->flagShowRecords) yaz_log(YLOG_LOG, "%s: XSLT %s\n %.*s", tinfo->fname ? tinfo->fname : "(none)", convert->stylesheet, -- 1.7.10.4