diff options
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index db8e5b6..e0f5cf5 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.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. * - * RCS: @(#) $Id: tclUnixFile.c,v 1.39 2004/04/06 22:25:57 dgp Exp $ + * RCS: @(#) $Id: tclUnixFile.c,v 1.40 2004/06/18 20:38:02 dgp Exp $ */ #include "tclInt.h" @@ -54,9 +54,10 @@ TclpFindExecutable(argv0) if (argv0 == NULL) { return NULL; } - if (tclNativeExecutableName != NULL) { + if (tclFindExecutableSearchDone) { return tclNativeExecutableName; } + tclFindExecutableSearchDone = 1; Tcl_DStringInit(&buffer); |