From: Neal Norwitz Date: Sun, 13 Aug 2006 18:41:15 +0000 (+0000) Subject: Get rid of compiler warning X-Git-Tag: v2.5c1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f;p=python Get rid of compiler warning --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index e25ec97bb4..73871ac96c 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1130,9 +1130,9 @@ static void setint(PyObject *d, const char *name, long value) { PyObject *o = PyInt_FromLong(value); - if (o) - if (PyDict_SetItemString(d, name, o) == 0) + if (o && PyDict_SetItemString(d, name, o) == 0) { Py_DECREF(o); + } } PyMODINIT_FUNC