Fixed bad memory reference that could occur if empty key block was to
[idzebra-moved-to-github.git] / index / mod_dom.c
index eb4bc63..1832b05 100644 (file)
@@ -1,5 +1,4 @@
-
-/* $Id: mod_dom.c,v 1.32 2007-03-14 14:16:14 adam Exp $
+/* $Id: mod_dom.c,v 1.34 2007-04-07 22:18:46 adam Exp $
    Copyright (C) 1995-2007
    Index Data ApS
 
@@ -822,7 +821,7 @@ static void set_record_info(struct filter_info *tinfo,
                             const char * type_p)
 {
     /* writing debug info out */
-    if (1 || extctr->flagShowRecords)
+    if (extctr && extctr->flagShowRecords)
         dom_log(YLOG_LOG, tinfo, node,
                 "RECORD id=%s rank=%s type=%s", 
                 id_p ? (const char *) id_p : "(null)",