summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-24 21:25:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-24 21:25:42 (GMT)
commit8b588ca9a643ca19fb8385153b832706bfbf94a0 (patch)
treee5f1ec5bc586b9f23fb5c27f4cb61a8e8bf02464 /unix
parentd47e639c8d4528dbcc67fe2e465f2cdd7295dd70 (diff)
downloadtcl-8b588ca9a643ca19fb8385153b832706bfbf94a0.zip
tcl-8b588ca9a643ca19fb8385153b832706bfbf94a0.tar.gz
tcl-8b588ca9a643ca19fb8385153b832706bfbf94a0.tar.bz2
gcc warnings
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);