diff options
author | Raymond Hettinger <python@rcn.com> | 2005-04-15 15:58:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-04-15 15:58:42 (GMT) |
commit | 1356f785c1fd8c2282f812b4ec6365359cb5b84f (patch) | |
tree | 78caa03de9c815885c0b189bb1a819d221bf12ca | |
parent | fa7e6b46eff16e6f90eec385c9d6501ad9ca6352 (diff) | |
download | cpython-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.c | 2 |
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 |