Hi,

 In a couple of functions in reader.c, if checks are being repeated, I have
attached a patch which takes care of the same.

Regards

Ashwin

*** Copy of xmlReader.c 2008-03-14 15:13:22.000000000 +0530
--- xmlReader.c 2008-03-14 15:21:20.000000000 +0530
*************** xmlTextReaderRemoveID(xmlDocPtr doc, xml
*** 234,241 ****
      if (table == NULL) 
          return(-1);
  
-     if (attr == NULL)
-       return(-1);
      ID = xmlNodeListGetString(doc, attr->children, 1);
      if (ID == NULL)
        return(-1);
--- 234,239 ----
*************** xmlTextReaderCurrentDoc(xmlTextReaderPtr
*** 3960,3967 ****
        return(NULL);
      if (reader->doc != NULL)
          return(reader->doc);
!     if ((reader == NULL) || (reader->ctxt == NULL) ||
!         (reader->ctxt->myDoc == NULL))
        return(NULL);
      
      reader->preserve = 1;
--- 3958,3964 ----
        return(NULL);
      if (reader->doc != NULL)
          return(reader->doc);
!     if ((reader->ctxt == NULL) || (reader->ctxt->myDoc == NULL))
        return(NULL);
      
      reader->preserve = 1;
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to