expat/lib xmlparse.c,1.102,1.103

"Karl Waclawek" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv8748

Modified Files:
	xmlparse.c 
Log Message:
Prevent storeAtts() from being called twice for an empty element when
the endElementHandler is set, but not the startElementHandler.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- xmlparse.c	16 Jan 2003 22:03:42 -0000	1.102
+++ xmlparse.c	22 Jan 2003 14:26:07 -0000	1.103
@@ -2123,7 +2123,7 @@
         break;
       }
     case XML_TOK_EMPTY_ELEMENT_WITH_ATTS:
-      if (!startElementHandler) {
+      if (!startElementHandler && !endElementHandler) {
         enum XML_Error result = storeAtts(parser, enc, s, 0, 0);
         if (result)
           return result;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.