diff options
author | vincentdarley <vincentdarley@noemail.net> | 2003-12-12 16:47:47 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2003-12-12 16:47:47 (GMT) |
commit | 8e74c4a9a914f794ba0c97a7f1bbb52821a0fc3c (patch) | |
tree | a72033fee9946e8fc215643b57a882208212adc3 /generic/tclCmdAH.c | |
parent | cf367f8e5a42820f546fafd02037542a2f76abc8 (diff) | |
download | tcl-8e74c4a9a914f794ba0c97a7f1bbb52821a0fc3c.zip tcl-8e74c4a9a914f794ba0c97a7f1bbb52821a0fc3c.tar.gz tcl-8e74c4a9a914f794ba0c97a7f1bbb52821a0fc3c.tar.bz2 |
fix to 'file normalize ~nobody' crash
FossilOrigin-Name: 23ab3123aff583c06744723f7b3beff700ae03e0
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 8f4ec9b..4bb76d2 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.27.2.7 2003/10/22 08:21:15 dkf Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.27.2.8 2003/12/12 16:47:47 vincentdarley Exp $ */ #include "tclInt.h" @@ -1132,6 +1132,9 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) } fileName = Tcl_FSGetNormalizedPath(interp, objv[2]); + if (fileName == NULL) { + return TCL_ERROR; + } Tcl_SetObjResult(interp, fileName); return TCL_OK; } |