summaryrefslogtreecommitdiffstats
path: root/Modules/bsddbmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 23:18:43 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-11 23:18:43 (GMT)
commit622f577eacd8ac8a0d8699665360e2d2b79d9eb7 (patch)
tree6c2924bb1ca6a2a757e9d03137ec938055ce9cf8 /Modules/bsddbmodule.c
parentc86436439548bf90131c19c33e307bfc604512f9 (diff)
downloadcpython-622f577eacd8ac8a0d8699665360e2d2b79d9eb7.zip
cpython-622f577eacd8ac8a0d8699665360e2d2b79d9eb7.tar.gz
cpython-622f577eacd8ac8a0d8699665360e2d2b79d9eb7.tar.bz2
Dynamically initialize ob_type field, for Windows DLL
Diffstat (limited to 'Modules/bsddbmodule.c')
-rw-r--r--Modules/bsddbmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c
index 3007d3d..1a82bd7 100644
--- a/Modules/bsddbmodule.c
+++ b/Modules/bsddbmodule.c
@@ -478,7 +478,7 @@ bsddb_getattr(dp, name)
}
static PyTypeObject Bsddbtype = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0,
"bsddb",
sizeof(bsddbobject),
@@ -667,6 +667,7 @@ void
initbsddb() {
PyObject *m, *d;
+ Bsddbtype.ob_type = &PyType_Type;
m = Py_InitModule("bsddb", bsddbmodule_methods);
d = PyModule_GetDict(m);
BsddbError = PyString_FromString("bsddb.error");