1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Silence compiler warning.

This commit is contained in:
Giuseppe Scrivano 2011-08-19 12:08:46 +02:00
parent 512bdc14cb
commit 2158e58bc1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-08-19 Giuseppe Scrivano <gscrivano@gnu.org>
* init.c (home_dir) [MSDOS]: Move local variable `len' here.
2011-08-18 Giuseppe Scrivano <giuseppe@southpole.se> 2011-08-18 Giuseppe Scrivano <giuseppe@southpole.se>
* http.c (gethttp): Fix a memory leak on some errors. Free the head * http.c (gethttp): Fix a memory leak on some errors. Free the head

View File

@ -370,7 +370,6 @@ home_dir (void)
{ {
static char *buf = NULL; static char *buf = NULL;
static char *home, *ret; static char *home, *ret;
int len;
if (!home) if (!home)
{ {
@ -378,6 +377,8 @@ home_dir (void)
if (!home) if (!home)
{ {
#if defined(MSDOS) #if defined(MSDOS)
int len;
/* Under MSDOS, if $HOME isn't defined, use the directory where /* Under MSDOS, if $HOME isn't defined, use the directory where
`wget.exe' resides. */ `wget.exe' resides. */
const char *_w32_get_argv0 (void); /* in libwatt.a/pcconfig.c */ const char *_w32_get_argv0 (void); /* in libwatt.a/pcconfig.c */