mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Commit another old fix.
This commit is contained in:
parent
858adf01cd
commit
aeabb42714
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user