summaryrefslogtreecommitdiffstats
path: root/generic/tclPathObj.c
diff options
context:
space:
mode:
authorcoldstore <coldstore>2006-08-29 00:36:57 (GMT)
committercoldstore <coldstore>2006-08-29 00:36:57 (GMT)
commit4ddcec561c505418f8a373d83ac40a7c31782b15 (patch)
treefbb2d67db8ec91bfa4da2a93652e5717dcaf4984 /generic/tclPathObj.c
parentc247e59a168cf578e7dad192eb8a2a8c5f11ab64 (diff)
downloadtcl-4ddcec561c505418f8a373d83ac40a7c31782b15.zip
tcl-4ddcec561c505418f8a373d83ac40a7c31782b15.tar.gz
tcl-4ddcec561c505418f8a373d83ac40a7c31782b15.tar.bz2
fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segv
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r--generic/tclPathObj.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index ba8d155..c73eee8 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.55 2006/04/07 14:05:29 dgp Exp $
+ * RCS: @(#) $Id: tclPathObj.c,v 1.56 2006/08/29 00:36:57 coldstore Exp $
*/
#include "tclInt.h"
@@ -1599,7 +1599,9 @@ Tcl_FSGetTranslatedPath(
retObj = srcFsPathPtr->translatedPathPtr;
}
- Tcl_IncrRefCount(retObj);
+ if (retObj != NULL) {
+ Tcl_IncrRefCount(retObj);
+ }
return retObj;
}