From c91bfc53bfc42c619f31d2f0d69ddcbdfdc3e944 Mon Sep 17 00:00:00 2001 From: vincentdarley Date: Fri, 12 Dec 2003 17:02:37 +0000 Subject: file normalize ~nobody fix --- generic/tclCmdAH.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index e049520..97266c0 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.36 2003/11/10 17:57:21 vincentdarley Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.37 2003/12/12 17:02:37 vincentdarley Exp $ */ #include "tclInt.h" @@ -1208,6 +1208,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; } -- cgit v0.12