]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
authorTim Peters <tim.peters@gmail.com>
Fri, 22 Sep 2000 06:01:11 +0000 (06:01 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 22 Sep 2000 06:01:11 +0000 (06:01 +0000)
Modules/pyexpat.c

index a7c96f3a689ae1ebc320e6ac7d35909cfa2450af..95a098098dcecc34bdea7e969ce47554ac5235f1 100644 (file)
@@ -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;