summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-18 20:38:00 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-18 20:38:00 (GMT)
commit1247e7630960b0ed9658d606b4a11e5855bf5298 (patch)
tree62641558728e9adf15391570df8b7c2fe4f8f179 /unix/tclUnixFile.c
parent5aa07287a0a3096095738841d801cd1fc7670a34 (diff)
downloadtcl-1247e7630960b0ed9658d606b4a11e5855bf5298.zip
tcl-1247e7630960b0ed9658d606b4a11e5855bf5298.tar.gz
tcl-1247e7630960b0ed9658d606b4a11e5855bf5298.tar.bz2
* generic/tclEncoding.c: Static TclFindEncodings -> FindEncodings.
* generic/tclInt.h: Updated TclpFindExecutable() so that failed * generic/tclUtil.c: attempts to find the executable are saved * unix/tclUnixFile.c: just as successful finds are. [Patch 966053] * unix/tclUnixTest.c:
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c5
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);