[Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.19,2.20
Tim Peters
python-dev@python.org
Thu, 21 Sep 2000 23:01:14 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28598/python/dist/src/modules
Modified Files:
pyexpat.c
Log Message:
Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.19
retrieving revision 2.20
diff -C2 -r2.19 -r2.20
*** pyexpat.c 2000/09/22 04:49:50 2.19
--- pyexpat.c 2000/09/22 06:01:11 2.20
***************
*** 423,428 ****
goto finally;
! if (PyTuple_SET_ITEM(arg, 0, bytes) < 0)
! goto finally;
if ((str = PyObject_CallObject(meth, arg)) == NULL)
--- 423,427 ----
goto finally;
! PyTuple_SET_ITEM(arg, 0, bytes);
if ((str = PyObject_CallObject(meth, arg)) == NULL)