+1998-09-25 Simon Munton <simonm@m4data.co.uk>
+
+ * init.c (wgetrc_file_name): Don't free HOME under Windows.
+
1998-12-01 "R. K. Owen" <rkowen@Nersc.GOV>
* host.c (store_hostaddress): Fix for big endian 64-bit machines.
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
}
#endif /* WINDOWS */
- FREE_MAYBE (home);
if (!file)
return NULL;
if (!file_exists_p (file))
return 0;
}
/* Search for a designator. */
- switch (tolower (*p))
+ switch (TOLOWER (*p))
{
case '\0':
/* None */
return 0;
}
/* Search for a suffix. */
- switch (tolower (*p))
+ switch (TOLOWER (*p))
{
case '\0':
/* None */