From aeabb4271426b1e468fc8f56bd4ef9aa7d3be99c Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 31 Mar 2000 06:08:57 -0800 Subject: [PATCH] [svn] Commit another old fix. --- src/ChangeLog | 4 ++++ src/init.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f522ab61..20e6c098 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +1998-09-25 Simon Munton + + * init.c (wgetrc_file_name): Don't free HOME under Windows. + 1998-12-01 "R. K. Owen" * host.c (store_hostaddress): Fix for big endian 64-bit machines. diff --git a/src/init.c b/src/init.c index f97628a2..86ee4648 100644 --- a/src/init.c +++ b/src/init.c @@ -278,6 +278,7 @@ wgetrc_file_name (void) file = (char *)xmalloc (strlen (home) + 1 + strlen (".wgetrc") + 1); sprintf (file, "%s/.wgetrc", home); } + FREE_MAYBE (home); #else /* WINDOWS */ /* Under Windows, "home" is (for the purposes of this function) the directory where `wget.exe' resides, and `wget.ini' will be used @@ -293,7 +294,6 @@ wgetrc_file_name (void) } #endif /* WINDOWS */ - FREE_MAYBE (home); if (!file) return NULL; if (!file_exists_p (file)) @@ -623,7 +623,7 @@ cmd_bytes (const char *com, const char *val, void *closure) return 0; } /* Search for a designator. */ - switch (tolower (*p)) + switch (TOLOWER (*p)) { case '\0': /* None */ @@ -667,7 +667,7 @@ cmd_time (const char *com, const char *val, void *closure) return 0; } /* Search for a suffix. */ - switch (tolower (*p)) + switch (TOLOWER (*p)) { case '\0': /* None */