summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-04-24 21:25:42 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-04-24 21:25:42 (GMT)
commitd8ffd823c08c591cd2666d3364fba23fb2f55c57 (patch)
treee5f1ec5bc586b9f23fb5c27f4cb61a8e8bf02464 /unix/tclUnixFile.c
parentf3958e65e28a4ae973c445167e40025b93c8e0b9 (diff)
downloadtcl-d8ffd823c08c591cd2666d3364fba23fb2f55c57.zip
tcl-d8ffd823c08c591cd2666d3364fba23fb2f55c57.tar.gz
tcl-d8ffd823c08c591cd2666d3364fba23fb2f55c57.tar.bz2
gcc warnings
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index dc5af66..8fb9fd9 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -39,7 +39,6 @@ TclpFindExecutable(
CONST char *argv0) /* The value of the application's argv[0]
* (native). */
{
- int length;
#ifdef __CYGWIN__
char buf[PATH_MAX * TCL_UTF_MAX + 1];
char name[PATH_MAX * TCL_UTF_MAX + 1];
@@ -72,7 +71,7 @@ TclpFindExecutable(
buf[length] = '\0';
#else
if (argv0 == NULL) {
- return NULL;
+ return;
}
Tcl_DStringInit(&buffer);