summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-09-08 12:22:25 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-09-08 12:22:25 (GMT)
commit498f733a1bd10ee1f6e8f97a3f8f4021ac9faa1f (patch)
treef200dbc1517d00c2c1f81926ce115bc485a9aed2 /generic/tclIOUtil.c
parente1f4100c039c4d48b36b43317861594cda900e55 (diff)
parent9e2fa9ea7edc34ebf959378f2bdbe0521bd7d2e4 (diff)
downloadtcl-498f733a1bd10ee1f6e8f97a3f8f4021ac9faa1f.zip
tcl-498f733a1bd10ee1f6e8f97a3f8f4021ac9faa1f.tar.gz
tcl-498f733a1bd10ee1f6e8f97a3f8f4021ac9faa1f.tar.bz2
merge 8.6.1
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 25ed57c..6259216 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -3225,6 +3225,9 @@ Tcl_LoadFile(
*/
copyToPtr = TclpTempFileNameForLibrary(interp, pathPtr);
+ if (copyToPtr == NULL) {
+ return TCL_ERROR;
+ }
Tcl_IncrRefCount(copyToPtr);
copyFsPtr = Tcl_FSGetFileSystemForPath(copyToPtr);