Kaydet (Commit) 9ed49e97 authored tarafından Fred Drake's avatar Fred Drake

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

üst c23b5239
...@@ -883,7 +883,7 @@ initpyexpat(void) ...@@ -883,7 +883,7 @@ initpyexpat(void)
PyObject *errmod_name = PyString_FromString("pyexpat.errors"); PyObject *errmod_name = PyString_FromString("pyexpat.errors");
if (errmod_name != NULL) { if (errmod_name != NULL) {
errors_module = PyDict_GetItem(errmod_name); errors_module = PyDict_GetItem(d, errmod_name);
if (errors_module == NULL) { if (errors_module == NULL) {
errors_module = PyModule_New("pyexpat.errors"); errors_module = PyModule_New("pyexpat.errors");
if (errors_module != NULL) { if (errors_module != NULL) {
...@@ -891,7 +891,7 @@ initpyexpat(void) ...@@ -891,7 +891,7 @@ initpyexpat(void)
PyDict_SetItem(sys_modules, errmod_name, errors_module); PyDict_SetItem(sys_modules, errmod_name, errors_module);
} }
} }
PyDECREF(errmod_name); Py_DECREF(errmod_name);
if (errors_module == NULL) if (errors_module == NULL)
/* Don't code dump later! */ /* Don't code dump later! */
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment