Commit 277be24d authored by Tim Peters's avatar Tim Peters

Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c

parent 9db83cbe
......@@ -422,8 +422,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
if ((arg = PyTuple_New(1)) == NULL)
goto finally;
if (PyTuple_SET_ITEM(arg, 0, bytes) < 0)
goto finally;
PyTuple_SET_ITEM(arg, 0, bytes);
if ((str = PyObject_CallObject(meth, arg)) == NULL)
goto finally;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment