chiark / gitweb /
catacomb/pwsafe.py: Add a new ABRUPTP argument to `close' methods.
[catacomb-python] / util.c
diff --git a/util.c b/util.c
index c1d0ad877c1b27370a34c217c03cc0308f203dbf..f56c7fd0c52524665deb176d3ac5200b978903dc 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1,6 +1,4 @@
 /* -*-c-*-
- *
- * $Id$
  *
  * Miscellaneous utilities (not Catacomb-specific)
  *
@@ -165,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);
 }