]> granicus.if.org Git - python/commitdiff
Fix an obvious bug.
authorThomas Heller <theller@ctypes.org>
Tue, 9 Apr 2002 12:50:13 +0000 (12:50 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 9 Apr 2002 12:50:13 +0000 (12:50 +0000)
Modules/xxmodule.c

index 3587c91eebea91a1b76cbbf9c77dfbb5ee793f78..c35d16ed1afd1d924da983776c09475716da6e55 100644 (file)
@@ -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);
 }