From 954eef7e51f11b97b4347eef443a19eda9ff4e6f Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 22 Sep 2000 06:01:11 +0000 Subject: [PATCH] Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c --- Modules/pyexpat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index a7c96f3a689..95a098098dc 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;