From f766e23f63589032a64366be4b9d0549f0ed1b3d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Jun 1998 04:28:10 +0000 Subject: There was an error check in a loop in PythonCmd which called 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 6d096a0..bf7501e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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); -- cgit v0.12