From dfe275f8d43eee2f351f5c0f42d5c1c384ec3dfc Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 3 Nov 2000 20:30:27 +0000 Subject: safety check on setting mainLoopProc to NULL --- generic/tclMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/tclMain.c b/generic/tclMain.c index 1ea4f3f..c3cabbf 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.10 2000/11/03 20:07:00 hobbs Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.11 2000/11/03 20:30:27 hobbs Exp $ */ #include "tcl.h" @@ -377,6 +377,7 @@ Tcl_Main(argc, argv, appInitProc) */ (*mainLoopProc)(); + mainLoopProc = NULL; } if (commandPtr != NULL) { Tcl_DecrRefCount(commandPtr); -- cgit v0.12