From: Adam Dickmeiss Date: Tue, 6 Mar 2007 08:48:57 +0000 (+0000) Subject: Fixed bug #946: Coredump on MARC display. X-Git-Tag: ZEBRA.2.0.12~9 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=1995ca9c4d5451771944163fc302d21578055241;p=idzebra-moved-to-github.git Fixed bug #946: Coredump on MARC display. --- 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,