[Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.13,2.14

Fred L. Drake python-dev@python.org
Thu, 24 Aug 2000 15:27:10 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12566

Modified Files:
	pyexpat.c 
Log Message:

Fix the evil booboos.  ;(  Causes discussed with Jeremy offline.


Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.13
retrieving revision 2.14
diff -C2 -r2.13 -r2.14
*** pyexpat.c	2000/08/24 21:57:43	2.13
--- pyexpat.c	2000/08/24 22:27:02	2.14
***************
*** 884,888 ****
  
          if (errmod_name != NULL) {
!             errors_module = PyDict_GetItem(errmod_name);
              if (errors_module == NULL) {
                  errors_module = PyModule_New("pyexpat.errors");
--- 884,888 ----
  
          if (errmod_name != NULL) {
!             errors_module = PyDict_GetItem(d, errmod_name);
              if (errors_module == NULL) {
                  errors_module = PyModule_New("pyexpat.errors");
***************
*** 892,896 ****
                  }
              }
!             PyDECREF(errmod_name);
              if (errors_module == NULL)
                  /* Don't code dump later! */
--- 892,896 ----
                  }
              }
!             Py_DECREF(errmod_name);
              if (errors_module == NULL)
                  /* Don't code dump later! */