summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-08 19:18:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-08 19:18:39 (GMT)
commit71d29f51af72942fd0ff29013cd77a59cddbcbca (patch)
tree830b85678ec45de2bd68f3df1eb36da1b3815853 /generic
parent95199c5bd3068d26758129488d106f3c88f67fb6 (diff)
downloadtcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.zip
tcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.tar.gz
tcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.tar.bz2
Silence compiler warnings.
Diffstat (limited to 'generic')
-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) {