diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-09-22 06:01:11 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-09-22 06:01:11 (GMT) |
commit | 954eef7e51f11b97b4347eef443a19eda9ff4e6f (patch) | |
tree | 9ce673d7c924ef82e146f46b71d715588645dc46 /Modules/pyexpat.c | |
parent | 7422b6b6a219667f8eee0f8e9ab40477e0cb5261 (diff) | |
download | cpython-954eef7e51f11b97b4347eef443a19eda9ff4e6f.zip cpython-954eef7e51f11b97b4347eef443a19eda9ff4e6f.tar.gz cpython-954eef7e51f11b97b4347eef443a19eda9ff4e6f.tar.bz2 |
Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index a7c96f3..95a0980 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -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; |