diff options
author | stanton <stanton> | 1999-02-02 18:36:31 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-02-02 18:36:31 (GMT) |
commit | 82742d54bcff7585126ef6294282f920f2c6595e (patch) | |
tree | 74dbc575972e1f7819b9706c83e54a69f3abdd57 /win/tclWinInit.c | |
parent | 141681c541737f4d78813e7c225d7c76ba2deabf (diff) | |
download | tcl-82742d54bcff7585126ef6294282f920f2c6595e.zip tcl-82742d54bcff7585126ef6294282f920f2c6595e.tar.gz tcl-82742d54bcff7585126ef6294282f920f2c6595e.tar.bz2 |
* win/tclWinInit.c (TclPlatformInit): Added code to ensure
tcl_pkgPath is set to "" when no registry entry is found. [Bug: 978]
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r-- | win/tclWinInit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index ef6eaecc..6173def 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinInit.c,v 1.11 1998/10/20 17:27:47 suresh Exp $ + * RCS: @(#) $Id: tclWinInit.c,v 1.12 1999/02/02 18:36:31 stanton Exp $ */ #include "tclInt.h" @@ -220,6 +220,8 @@ TclPlatformInit(interp) Tcl_SetVar(interp, "tcl_pkgPath", Tcl_JoinPath(2, argv, &ds), TCL_GLOBAL_ONLY|TCL_LIST_ELEMENT); } + } else { + Tcl_SetVar(interp, "tcl_pkgPath", "", TCL_GLOBAL_ONLY); } /* @@ -249,7 +251,7 @@ TclPlatformInit(interp) */ Tcl_SetVar2(interp, "tcl_platform", "debug", "1", - TCL_GLOBAL_ONLY); + TCL_GLOBAL_ONLY); #endif /* |