[Expat-checkins] expat/lib xmlparse.c,1.130,1.131

Karl Waclawek kwaclaw at users.sourceforge.net
Tue Apr 13 09:18:03 EDT 2004


Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27479

Modified Files:
	xmlparse.c 
Log Message:
Fix for bug #920274.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- xmlparse.c	26 Mar 2004 14:24:10 -0000	1.130
+++ xmlparse.c	13 Apr 2004 13:17:59 -0000	1.131
@@ -2958,7 +2958,8 @@
     prefix->binding = b;
   b->nextTagBinding = *bindingsPtr;
   *bindingsPtr = b;
-  if (startNamespaceDeclHandler)
+  /* if attId == NULL then we are not starting a namespace scope */
+  if (attId && startNamespaceDeclHandler)
     startNamespaceDeclHandler(handlerArg, prefix->name,
                               prefix->binding ? uri : 0);
   return XML_ERROR_NONE;
@@ -5368,7 +5369,7 @@
           return XML_FALSE;
       if (!poolAppendChar(&tempPool, XML_T('\0')))
         return XML_FALSE;
-      if (addBinding(parser, prefix, 0, poolStart(&tempPool),
+      if (addBinding(parser, prefix, NULL, poolStart(&tempPool),
                      &inheritedBindings) != XML_ERROR_NONE)
         return XML_FALSE;
       poolDiscard(&tempPool);




More information about the Expat-checkins mailing list