mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
This commit is contained in:
parent
7422b6b6a2
commit
954eef7e51
1 changed files with 1 additions and 2 deletions
|
@ -422,8 +422,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
|
||||||
if ((arg = PyTuple_New(1)) == NULL)
|
if ((arg = PyTuple_New(1)) == NULL)
|
||||||
goto finally;
|
goto finally;
|
||||||
|
|
||||||
if (PyTuple_SET_ITEM(arg, 0, bytes) < 0)
|
PyTuple_SET_ITEM(arg, 0, bytes);
|
||||||
goto finally;
|
|
||||||
|
|
||||||
if ((str = PyObject_CallObject(meth, arg)) == NULL)
|
if ((str = PyObject_CallObject(meth, arg)) == NULL)
|
||||||
goto finally;
|
goto finally;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue