commit | 954eef7e51f11b97b4347eef443a19eda9ff4e6f | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Fri Sep 22 06:01:11 2000 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Fri Sep 22 06:01:11 2000 +0000 |
tree | 9ce673d7c924ef82e146f46b71d715588645dc46 | |
parent | 7422b6b6a219667f8eee0f8e9ab40477e0cb5261 [diff] [blame] |
Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
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 @@ 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;