summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-19 04:28:10 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-19 04:28:10 (GMT)
commitf766e23f63589032a64366be4b9d0549f0ed1b3d (patch)
treefcaadcd5e7403e54d7ddb83581bdca42c2b8b112
parent7b7f6688d276c73a779ee9df7db41afe418987ca (diff)
downloadcpython-f766e23f63589032a64366be4b9d0549f0ed1b3d.zip
cpython-f766e23f63589032a64366be4b9d0549f0ed1b3d.tar.gz
cpython-f766e23f63589032a64366be4b9d0549f0ed1b3d.tar.bz2
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.)
-rw-r--r--Modules/_tkinter.c2
1 files changed, 1 insertions, 1 deletions
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);