]> sjero.net Git - wget/commitdiff
Silence compiler warning.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 19 Aug 2011 10:08:46 +0000 (12:08 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 19 Aug 2011 10:08:46 +0000 (12:08 +0200)
src/ChangeLog
src/init.c

index 56b6eb978fb60dbce3e3f5d2d949b4e9445322c7..8e9572f235b47ae1ddcacbba3e760a6a78089ebd 100644 (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>
 
        * http.c (gethttp): Fix a memory leak on some errors.  Free the head
 2011-08-18  Giuseppe Scrivano  <giuseppe@southpole.se>
 
        * http.c (gethttp): Fix a memory leak on some errors.  Free the head
index dca24a9feb9c522d2b801325a66b087f9f111953..0389c39fff1ecd2df9d5b02b09d6b9a29ad7105a 100644 (file)
@@ -370,7 +370,6 @@ home_dir (void)
 {
   static char *buf = NULL;
   static char *home, *ret;
 {
   static char *buf = NULL;
   static char *home, *ret;
-  int len;
 
   if (!home)
     {
 
   if (!home)
     {
@@ -378,6 +377,8 @@ home_dir (void)
       if (!home)
         {
 #if defined(MSDOS)
       if (!home)
         {
 #if defined(MSDOS)
+          int len;
+
           /* Under MSDOS, if $HOME isn't defined, use the directory where
              `wget.exe' resides.  */
           const char *_w32_get_argv0 (void); /* in libwatt.a/pcconfig.c */
           /* Under MSDOS, if $HOME isn't defined, use the directory where
              `wget.exe' resides.  */
           const char *_w32_get_argv0 (void); /* in libwatt.a/pcconfig.c */