summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorcoldstore <coldstore>2006-08-29 00:36:57 (GMT)
committercoldstore <coldstore>2006-08-29 00:36:57 (GMT)
commitf6c2039e4a2281d33c07777e42c43fb2a47d5433 (patch)
treefbb2d67db8ec91bfa4da2a93652e5717dcaf4984 /unix
parenteb57f417292ce1c040b4f2995162ea7bccf61ce3 (diff)
downloadtcl-f6c2039e4a2281d33c07777e42c43fb2a47d5433.zip
tcl-f6c2039e4a2281d33c07777e42c43fb2a47d5433.tar.gz
tcl-f6c2039e4a2281d33c07777e42c43fb2a47d5433.tar.bz2
fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segv
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixFile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 2f2ebc4..e278eae 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.49 2006/03/25 01:47:56 das Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.50 2006/08/29 00:36:57 coldstore Exp $
*/
#include "tclInt.h"
@@ -1089,6 +1089,9 @@ TclNativeCreateNativeRep(
*/
validPathPtr = Tcl_FSGetNormalizedPath(NULL, pathPtr);
+ if (validPathPtr == NULL) {
+ return NULL;
+ }
Tcl_IncrRefCount(validPathPtr);
}