churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame python-3.1.2-fix-expat-issue9054.patch

03b7fb2
Index: Modules/pyexpat.c
03b7fb2
===================================================================
03b7fb2
--- Modules/pyexpat.c	(revision 81539)
03b7fb2
+++ Modules/pyexpat.c	(working copy)
03b7fb2
@@ -415,6 +415,9 @@
03b7fb2
     PyObject *args;
03b7fb2
     PyObject *temp;
03b7fb2
 
03b7fb2
+    if (!have_handler(self, CharacterData))
03b7fb2
+        return -1;
03b7fb2
+
03b7fb2
     args = PyTuple_New(1);
03b7fb2
     if (args == NULL)
03b7fb2
         return -1;