[Expat-checkins] expat/lib xmlparse.c,1.134,1.135

Karl Waclawek kwaclaw at users.sourceforge.net
Thu May 27 13:38:55 EDT 2004


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

Modified Files:
	xmlparse.c 
Log Message:
Applied patch for bug #961698 supplied by Anders Carlsson.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- xmlparse.c	18 May 2004 13:50:13 -0000	1.134
+++ xmlparse.c	27 May 2004 17:38:52 -0000	1.135
@@ -5758,8 +5758,10 @@
     table->size = (size_t)1 << INIT_POWER;
     tsize = table->size * sizeof(NAMED *);
     table->v = (NAMED **)table->mem->malloc_fcn(tsize);
-    if (!table->v)
+    if (!table->v) {
+      table->size = 0;
       return NULL;
+    }
     memset(table->v, 0, tsize);
     i = hash(name) & ((unsigned long)table->size - 1);
   }




More information about the Expat-checkins mailing list