summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-04-15 15:58:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-04-15 15:58:42 (GMT)
commit1356f785c1fd8c2282f812b4ec6365359cb5b84f (patch)
tree78caa03de9c815885c0b189bb1a819d221bf12ca
parentfa7e6b46eff16e6f90eec385c9d6501ad9ca6352 (diff)
downloadcpython-1356f785c1fd8c2282f812b4ec6365359cb5b84f.zip
cpython-1356f785c1fd8c2282f812b4ec6365359cb5b84f.tar.gz
cpython-1356f785c1fd8c2282f812b4ec6365359cb5b84f.tar.bz2
SF bug #1183742: PyDict_Copy() can return non-NULL value on error
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 82e82a8..1be3477 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -1291,7 +1291,7 @@ PyDict_Copy(PyObject *o)
if (PyDict_Merge(copy, o, 1) == 0)
return copy;
Py_DECREF(copy);
- return copy;
+ return NULL;
}
int