commit | 1356f785c1fd8c2282f812b4ec6365359cb5b84f | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Apr 15 15:58:42 2005 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri Apr 15 15:58:42 2005 +0000 |
tree | 78caa03de9c815885c0b189bb1a819d221bf12ca | |
parent | fa7e6b46eff16e6f90eec385c9d6501ad9ca6352 [diff] [blame] |
SF bug #1183742: PyDict_Copy() can return non-NULL value on error
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 @@ if (PyDict_Merge(copy, o, 1) == 0) return copy; Py_DECREF(copy); - return copy; + return NULL; } int