summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-02-14 03:07:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-02-14 03:07:21 (GMT)
commit2731ae4d6dbf887c698ba7e62590a4f27df62bb9 (patch)
tree407fae3e529e664194028a4f70c01f981391703b /Objects/listobject.c
parent601b963be0c8ada918045577648b6f77b8e49440 (diff)
downloadcpython-2731ae4d6dbf887c698ba7e62590a4f27df62bb9.zip
cpython-2731ae4d6dbf887c698ba7e62590a4f27df62bb9.tar.gz
cpython-2731ae4d6dbf887c698ba7e62590a4f27df62bb9.tar.bz2
Fix missing return value. Spotted by Neal Norwitz
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 6651966..3a84229 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -525,6 +525,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v)
if (list_resize(a, s+d) == -1) {
if (recycle != NULL)
PyMem_DEL(recycle);
+ return -1;
}
item = a->ob_item;
for (k = s; --k >= ihigh; )