diff options
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index cf00ab2..7198e34 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1968,6 +1968,7 @@ fail: merge_freemem(&ms); if (keyfunc != NULL) { + len = PyList_GET_SIZE(self); for (i=0 ; i < len ; i++) { kvpair = PyList_GET_ITEM(self, i); value = sortwrapper_getvalue(kvpair); |