From 9ed49e979f342d0341d0208ea1ee12ad80835a91 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 24 Aug 2000 22:27:02 +0000 Subject: [PATCH] Fix the evil booboos. ;( Causes discussed with Jeremy offline. --- Modules/pyexpat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 65720373695..2b8d03e4b90 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -883,7 +883,7 @@ initpyexpat(void) PyObject *errmod_name = PyString_FromString("pyexpat.errors"); if (errmod_name != NULL) { - errors_module = PyDict_GetItem(errmod_name); + errors_module = PyDict_GetItem(d, errmod_name); if (errors_module == NULL) { errors_module = PyModule_New("pyexpat.errors"); if (errors_module != NULL) { @@ -891,7 +891,7 @@ initpyexpat(void) PyDict_SetItem(sys_modules, errmod_name, errors_module); } } - PyDECREF(errmod_name); + Py_DECREF(errmod_name); if (errors_module == NULL) /* Don't code dump later! */ return;