Avoid mixed stmt/var declare
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 6 Mar 2007 12:09:44 +0000 (12:09 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 6 Mar 2007 12:09:44 +0000 (12:09 +0000)
index/mod_dom.c

index d938532..131c09a 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: mod_dom.c,v 1.28 2007-03-06 08:48:57 adam Exp $
+/* $Id: mod_dom.c,v 1.29 2007-03-06 12:09:44 adam Exp $
    Copyright (C) 1995-2007
    Index Data ApS
 
@@ -1157,12 +1157,12 @@ static int extract_xml_split(struct filter_info *tinfo,
         if (type == XML_READER_TYPE_ELEMENT && 
             input->u.xmlreader.split_level == depth)
         {
+            xmlNodePtr ptr;
+
             /* per default do not ingest record */
             tinfo->record_info_invoked = 0;
-
-           xmlNodePtr ptr
-                = xmlTextReaderExpand(input->u.xmlreader.reader);
-
+            
+            ptr = xmlTextReaderExpand(input->u.xmlreader.reader);
             if (ptr)
                 {
                 /* we have a new document */