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)
commit136ab8e516a21b2151c13a72576fd4311094953b (patch)
treee5f1ec5bc586b9f23fb5c27f4cb61a8e8bf02464 /unix
parente0a64b5e5b1b806501b64f943a91835606fdf458 (diff)
downloadtcl-136ab8e516a21b2151c13a72576fd4311094953b.zip
tcl-136ab8e516a21b2151c13a72576fd4311094953b.tar.gz
tcl-136ab8e516a21b2151c13a72576fd4311094953b.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);