diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-13 18:41:15 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-13 18:41:15 (GMT) |
commit | 5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f (patch) | |
tree | da4fe1a5d4bfc9a876d81271e6f52aceb970ef73 /Modules | |
parent | 93bf902242ebd991e11bd4421847f6eaafd5c8d4 (diff) | |
download | cpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.zip cpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.tar.gz cpython-5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f.tar.bz2 |
Get rid of compiler warning
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 4 |
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 |