From 5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 13 Aug 2006 18:41:15 +0000 Subject: Get rid of compiler warning --- Modules/mmapmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index e25ec97..73871ac 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 -- cgit v0.12