diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-04-03 02:43:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 02:43:53 (GMT) |
commit | d1c82c5cc7be0c21dddf86fd19c1702f6218459b (patch) | |
tree | eddb0cd4314b9eb1005b59580480dfed2095757b /Objects/dictobject.c | |
parent | a68f2f0578bbf812fa2264d0e0bb388340d6e230 (diff) | |
download | cpython-d1c82c5cc7be0c21dddf86fd19c1702f6218459b.zip cpython-d1c82c5cc7be0c21dddf86fd19c1702f6218459b.tar.gz cpython-d1c82c5cc7be0c21dddf86fd19c1702f6218459b.tar.bz2 |
bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341)
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index bb4ea1f..be895d4 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2551,6 +2551,7 @@ PyDict_Copy(PyObject *o) split_copy->ma_values = newvalues; split_copy->ma_keys = mp->ma_keys; split_copy->ma_used = mp->ma_used; + split_copy->ma_version_tag = DICT_NEXT_VERSION(); DK_INCREF(mp->ma_keys); for (i = 0, n = size; i < n; i++) { PyObject *value = mp->ma_values[i]; |