diff options
author | dgp <dgp@noemail.net> | 2009-08-18 14:44:20 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-08-18 14:44:20 (GMT) |
commit | 99c4a29ec55f60048b491f2f57acc243a115dcd5 (patch) | |
tree | 41726dda308fc5cf1bf7bac6b8347f4a46986f52 /generic/tclPathObj.c | |
parent | fcf3f8cc74d77f889aa92c3fac0287662bf2f1eb (diff) | |
download | tcl-99c4a29ec55f60048b491f2f57acc243a115dcd5.zip tcl-99c4a29ec55f60048b491f2f57acc243a115dcd5.tar.gz tcl-99c4a29ec55f60048b491f2f57acc243a115dcd5.tar.bz2 |
* generic/tclPathObj.c: Added NULL check to prevent crashes during
* tests/fileName.test: [glob]. [Bug 2837800]
FossilOrigin-Name: 3432a10a2760a0e4605749297dc3c03ca3f9389b
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 3c7cce5..6c368e5 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPathObj.c,v 1.80 2009/03/27 19:17:54 dgp Exp $ + * RCS: @(#) $Id: tclPathObj.c,v 1.81 2009/08/18 14:44:21 dgp Exp $ */ #include "tclInt.h" @@ -1684,6 +1684,9 @@ Tcl_FSGetTranslatedPath( Tcl_Obj *translatedCwdPtr = Tcl_FSGetTranslatedPath(interp, srcFsPathPtr->cwdPtr); + if (translatedCwdPtr == NULL) { + return NULL; + } retObj = Tcl_FSJoinToPath(translatedCwdPtr, 1, &srcFsPathPtr->normPathPtr); |