X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/e56eb7d60c3d0929e952cad2d9ea2c711bd52593..60ddd740bac95c3d8d8871adc1439aae91e98362:/util.c diff --git a/util.c b/util.c index c1d0ad8..f56c7fd 100644 --- a/util.c +++ b/util.c @@ -1,7 +1,5 @@ /* -*-c-*- * - * $Id$ - * * Miscellaneous utilities (not Catacomb-specific) * * (c) 2005 Straylight/Edgeware @@ -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); }