X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/747ddb1b97d37fd57efae3c99c2bd188a14df308..1edc7284ff2dcfa5ebda27b5fc44f6053160ac2a:/pyke.c diff --git a/pyke.c b/pyke.c index f19c9e4..29dd8c5 100644 --- a/pyke.c +++ b/pyke.c @@ -237,6 +237,7 @@ void *newtype(PyTypeObject *metaty, ty->ht_name = PyString_FromString(ty->ht_type.tp_name); if (ty->ht_name) ty->ht_type.tp_name = PyString_AS_STRING(ty->ht_name); + ty->ht_slots = 0; (void)PyObject_INIT(&ty->ht_type, metaty); Py_INCREF(metaty); return (ty);