From: Michael W. Hudson Date: Fri, 15 Aug 2003 12:26:05 +0000 (+0000) Subject: Backport my fix to my fix: X-Git-Tag: v2.3.1~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62748a10f7023b1385816c85a7b6a8d7f62869c1;p=thirdparty%2FPython%2Fcpython.git Backport my fix to my fix: My last fix left n used unitialized in tha a==b case. Fix, by not using n at all in that case. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index ed2820093c5c..727c9e6d6921 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);