]> sjero.net Git - wget/commitdiff
[svn] Commit another old fix.
authorhniksic <devnull@localhost>
Fri, 31 Mar 2000 14:08:57 +0000 (06:08 -0800)
committerhniksic <devnull@localhost>
Fri, 31 Mar 2000 14:08:57 +0000 (06:08 -0800)
src/ChangeLog
src/init.c

index f522ab61d623956e512fc6ee056662c9b4374372..20e6c09882c4e656046d775c602cf2dc72281711 100644 (file)
@@ -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.
index f97628a2000434b5b6d33c474139cc980de8fe27..86ee46486c14b27280bb99f729f7da0a09cebb42 100644 (file)
@@ -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 */