summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-08-13 18:41:15 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-08-13 18:41:15 (GMT)
commit5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f (patch)
treeda4fe1a5d4bfc9a876d81271e6f52aceb970ef73 /Modules
parent93bf902242ebd991e11bd4421847f6eaafd5c8d4 (diff)
downloadcpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.zip
cpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.tar.gz
cpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.tar.bz2
Get rid of compiler warning
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c4
1 files 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