summaryrefslogtreecommitdiffstats
path: root/generic/tclPathObj.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2004-06-08 19:18:38 (GMT)
committerdgp <dgp@noemail.net>2004-06-08 19:18:38 (GMT)
commitef34f92e5397ff1a1e135601cd9948c6a83d2c93 (patch)
tree830b85678ec45de2bd68f3df1eb36da1b3815853 /generic/tclPathObj.c
parent60aaa453aa4502c43486d9e11b05e9dde09b73a8 (diff)
downloadtcl-ef34f92e5397ff1a1e135601cd9948c6a83d2c93.zip
tcl-ef34f92e5397ff1a1e135601cd9948c6a83d2c93.tar.gz
tcl-ef34f92e5397ff1a1e135601cd9948c6a83d2c93.tar.bz2
Silence compiler warnings.
FossilOrigin-Name: 44e73905b27c99cf41a51b5c6e33d537e2c64d0d
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r--generic/tclPathObj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index df9963a..7a11e56 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.31 2004/05/19 16:56:39 vincentdarley Exp $
+ * RCS: @(#) $Id: tclPathObj.c,v 1.32 2004/06/08 19:18:39 dgp Exp $
*/
#include "tclInt.h"
@@ -578,9 +578,10 @@ TclPathPart(interp, pathPtr, portion)
} else {
int splitElements;
Tcl_Obj *splitPtr;
- Tcl_Obj *resultPtr = NULL;
+ Tcl_Obj *resultPtr;
standardPath:
+ resultPtr = NULL;
if (portion == TCL_PATH_EXTENSION) {
return GetExtension(pathPtr);
} else if (portion == TCL_PATH_ROOT) {