diff options
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 94f1859..17ec1a0 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -516,7 +516,7 @@ _PyTuple_Resize(PyObject **pv, int newsize) (current) reference */ Py_DECREF(v); *pv = PyTuple_New(newsize); - return 0; + return *pv == NULL ? -1 : 0; } /* XXX UNREF/NEWREF interface should be more symmetrical */ |