commit | 5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Aug 13 18:41:15 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Aug 13 18:41:15 2006 +0000 |
tree | da4fe1a5d4bfc9a876d81271e6f52aceb970ef73 | |
parent | 93bf902242ebd991e11bd4421847f6eaafd5c8d4 [diff] |
Get rid of compiler warning
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 @@ 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