From: Tim Ruehsen Date: Sun, 22 Apr 2012 16:36:09 +0000 (+0200) Subject: Fix a possible invalid `free'. X-Git-Tag: v1.14~38 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=c6889dab18d3fcbcb9e9ac28ccdf684131a0089f Fix a possible invalid `free'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 08266a73..44d4b54d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-04-22 Tim Ruehsen + + * main.c (main): Dynamically allocate `opt.progress_type'. + 2012-04-21 Tim Ruehsen * ftp-basic.c (ftp_pasv): Fix memory leak. diff --git a/src/main.c b/src/main.c index a12aaf1b..438085e4 100644 --- a/src/main.c +++ b/src/main.c @@ -1299,7 +1299,7 @@ for details.\n\n")); } if (opt.warc_keep_log) { - opt.progress_type = "dot"; + opt.progress_type = xstrdup ("dot"); } }