]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
There was an error check in a loop in PythonCmd which called
authorGuido van Rossum <guido@python.org>
Fri, 19 Jun 1998 04:28:10 +0000 (04:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Jun 1998 04:28:10 +0000 (04:28 +0000)
PythonCmd_Error() but failed to return.  The error wasn't very likely
(only when we run out of memory) but since the check is there we might
as well return the error.  (I think that Barry introduced this buglet
when he added error checks everywhere.)

Modules/_tkinter.c

index 6d096a04c79f5936d482e868584c831cb9d4e9f2..bf7501ee99433e7c6a362c0eef26626210f45c5c 100644 (file)
@@ -1202,7 +1202,7 @@ PythonCmd(clientData, interp, argc, argv)
                PyObject *s = PyString_FromString(argv[i + 1]);
                if (!s || PyTuple_SetItem(arg, i, s)) {
                        Py_DECREF(arg);
-                       PythonCmd_Error(interp);
+                       return PythonCmd_Error(interp);
                }
        }
        res = PyEval_CallObject(func, arg);