~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pyke/pyke.c (newtype): Explicitly clear `ht_slots'.
[pyke]
/
pyke.c
diff --git
a/pyke.c
b/pyke.c
index
f19c9e4
..
29dd8c5
100644
(file)
--- 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);