diff options
author | Michael W. Hudson <mwh@python.net> | 2003-08-15 12:06:41 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2003-08-15 12:06:41 (GMT) |
commit | da0a0673b18014559d321faae19f755a33c23d2a (patch) | |
tree | 7ea6d118d8eaf8a04b7a8bcb388ddd436f62acb9 /Objects | |
parent | 465fa3dac49e5bbbb7904c755ff999dd5362c83e (diff) | |
download | cpython-da0a0673b18014559d321faae19f755a33c23d2a.zip cpython-da0a0673b18014559d321faae19f755a33c23d2a.tar.gz cpython-da0a0673b18014559d321faae19f755a33c23d2a.tar.bz2 |
My last fix left n used unitialized in tha a==b case.
Fix, by not using n at all in that case.
Needs to be applied to release23-maint, too.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/listobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index ed28200..727c9e6 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -475,7 +475,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v) if (a == b) { /* Special case "a[i:j] = a" -- copy b first */ int ret; - v = list_slice(b, 0, n); + v = list_slice(b, 0, b->ob_size); if (v == NULL) return -1; ret = list_ass_slice(a, ilow, ihigh, v); |