diff Modules/_tkinter.c @ 8522:4e4fd954dda0 legacy-trunk

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.)
author Guido van Rossum <guido@python.org>
date Fri, 19 Jun 1998 04:28:10 +0000
parents de11a88ac498
children 027a1dad1353
line wrap: on
line diff
--- a/Modules/_tkinter.c	Thu Jun 18 16:45:34 1998 +0000
+++ b/Modules/_tkinter.c	Fri Jun 19 04:28:10 1998 +0000
@@ -1202,7 +1202,7 @@
 		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);