summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2002-04-09 12:50:13 (GMT)
committerThomas Heller <theller@ctypes.org>2002-04-09 12:50:13 (GMT)
commit1630520e5ce10aaf5769712d39d93bbeedb5b934 (patch)
tree5efb40e0aa24b8f8411094ad5a189670018778dd
parent77f4438f1a740bbf30fb0274ae2edc679e679c80 (diff)
downloadcpython-1630520e5ce10aaf5769712d39d93bbeedb5b934.zip
cpython-1630520e5ce10aaf5769712d39d93bbeedb5b934.tar.gz
cpython-1630520e5ce10aaf5769712d39d93bbeedb5b934.tar.bz2
Fix an obvious bug.
-rw-r--r--Modules/xxmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c
index 3587c91..c35d16e 100644
--- a/Modules/xxmodule.c
+++ b/Modules/xxmodule.c
@@ -221,7 +221,7 @@ static PyMethodDef xx_methods[] = {
DL_EXPORT(void)
initxx(void)
{
- PyObject *m, *d;
+ PyObject *m;
/* Initialize the type of the new type object here; doing it here
* is required for portability to Windows without requiring C++. */
@@ -237,5 +237,5 @@ initxx(void)
return;
}
Py_INCREF(ErrorObject);
- PyModule_AddObject(d, "error", ErrorObject);
+ PyModule_AddObject(m, "error", ErrorObject);
}