diff options
author | vincentdarley <vincentdarley> | 2002-07-22 16:57:47 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2002-07-22 16:57:47 (GMT) |
commit | b39f34de9807e5ba4c36539d29795fd971b72abf (patch) | |
tree | 1f9f319166b40cfef0ca01389dcb06b397137202 /generic/tclIOUtil.c | |
parent | df9190aa43ec6f65886c402aa9d5ade8a57cd6be (diff) | |
download | tcl-b39f34de9807e5ba4c36539d29795fd971b72abf.zip tcl-b39f34de9807e5ba4c36539d29795fd971b72abf.tar.gz tcl-b39f34de9807e5ba4c36539d29795fd971b72abf.tar.bz2 |
removed load-related clientData, made filesystem static
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 27f32b4..e7ac3a2 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -17,7 +17,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOUtil.c,v 1.63 2002/07/22 16:51:48 vincentdarley Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.64 2002/07/22 16:57:47 vincentdarley Exp $ */ #include "tclInt.h" @@ -2526,8 +2526,12 @@ Tcl_FSLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr, if (*handlePtr == NULL) { return TCL_ERROR; } - *proc1Ptr = TclpFindSymbol(interp, *handlePtr, sym1); - *proc2Ptr = TclpFindSymbol(interp, *handlePtr, sym2); + if (sym1 != NULL) { + *proc1Ptr = TclpFindSymbol(interp, *handlePtr, sym1); + } + if (sym2 != NULL) { + *proc2Ptr = TclpFindSymbol(interp, *handlePtr, sym2); + } return retVal; } else { Tcl_Filesystem *copyFsPtr; |