Commits

Christian Heimes committed 9135e04

Fixed compilation issue

  • Participants
  • Parent commits 8e890d6

Comments (0)

Files changed (1)

File Modules32/pyexpat.c

             return PyLong_FromLong((long) self->buffer_used);
     }
 #ifdef XML_BOMB_PROTECTION
-    if (first_char == 'm') {
+    if (name[0] == 'm') {
         if (PyUnicode_CompareWithASCIIString(nameobj, "max_entity_indirections") == 0)
             return PyLong_FromLong((long)
                                     XML_GetMaxEntityIndirections(self->itself));