chiark / gitweb /
catacomb/pwsafe.py: Split out the GDBM-specifics from StorageBackend.
[catacomb-python] / util.c
diff --git a/util.c b/util.c
index 96a4052df31ed847ee277208339da5a5eab6b2df..f56c7fd0c52524665deb176d3ac5200b978903dc 100644 (file)
--- a/util.c
+++ b/util.c
@@ -163,7 +163,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);
-  PyObject_INIT(&ty->ht_type, metaty);
+  DISCARD(PyObject_INIT(&ty->ht_type, metaty));
   Py_INCREF(metaty);
   return (ty);
 }