summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-04-24 21:25:42 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-04-24 21:25:42 (GMT)
commit3e22f56194fb685356fbc7d3bec9c56fde3040fd (patch)
treee5f1ec5bc586b9f23fb5c27f4cb61a8e8bf02464 /unix
parent9364b8e8212e92009709afb98a6e669be5bc5985 (diff)
downloadtcl-3e22f56194fb685356fbc7d3bec9c56fde3040fd.zip
tcl-3e22f56194fb685356fbc7d3bec9c56fde3040fd.tar.gz
tcl-3e22f56194fb685356fbc7d3bec9c56fde3040fd.tar.bz2
gcc warnings
FossilOrigin-Name: d2d01508c4863228ff5439afb0b5b59d4151b6c0
Diffstat (limited to 'unix')
-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);