diff options
Diffstat (limited to 'contrib/tcl/generic/tclLoad.c')
-rw-r--r-- | contrib/tcl/generic/tclLoad.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/tcl/generic/tclLoad.c b/contrib/tcl/generic/tclLoad.c index 2e4e615..a1deee0 100644 --- a/contrib/tcl/generic/tclLoad.c +++ b/contrib/tcl/generic/tclLoad.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * SCCS: @(#) tclLoad.c 1.16 97/05/14 13:23:37 + * SCCS: @(#) tclLoad.c 1.17 97/07/24 20:05:04 */ #include "tclInt.h" @@ -370,6 +370,10 @@ Tcl_LoadCmd(dummy, interp, argc, argv) * everything we need in target's $errorInfo. */ + /* + * It is (abusively) assumed that errorInfo and errorCode vars exists. + * we changed SetVar2 to accept NULL values to avoid crashes. --dl + */ Tcl_ResetResult(interp); Tcl_AddErrorInfo(interp, Tcl_GetVar2(target, "errorInfo", (char *) NULL, TCL_GLOBAL_ONLY)); |