]> sjero.net Git - wget/commitdiff
Fix a possible invalid `free'.
authorTim Ruehsen <tim.ruehsen@gmx.de>
Sun, 22 Apr 2012 16:36:09 +0000 (18:36 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 22 Apr 2012 16:36:09 +0000 (18:36 +0200)
src/ChangeLog
src/main.c

index 08266a73a4b889287a4530328b0e97dd8d447893..44d4b54ddd16a53c16c2459f079a4bab7e4790be 100644 (file)
@@ -1,3 +1,7 @@
+2012-04-22  Tim Ruehsen <tim.ruehsen@gmx.de>
+
+       * main.c (main): Dynamically allocate `opt.progress_type'.
+
 2012-04-21  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * ftp-basic.c (ftp_pasv): Fix memory leak.
index a12aaf1b43e2ebde3ba36427b521acb26f6f9c7f..438085e4ffb24a4c2a5114999a2e11c7af387443 100644 (file)
@@ -1299,7 +1299,7 @@ for details.\n\n"));
         }
       if (opt.warc_keep_log)
         {
-          opt.progress_type = "dot";
+          opt.progress_type = xstrdup ("dot");
         }
     }