diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 223afacf3140f9..37a5c3dade8edb 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1392,7 +1392,8 @@ static void setint(PyObject *d, const char *name, long value) { PyObject *o = PyLong_FromLong(value); - if (o && PyDict_SetItemString(d, name, o) == 0) { + if (o) { + PyDict_SetItemString(d, name, o); Py_DECREF(o); } }