X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhttp.c;h=113e096a6705f7036fd41c2cc78ea57485f683c7;hb=6db8909f87012ee8f65e496846962d98cd8bafea;hp=d17b5db12f70515160f94845907f18271fcaee0b;hpb=b2dbe2b7e4a3d0f1bec1aa7c835879c537ff474a;p=wget diff --git a/src/http.c b/src/http.c index d17b5db1..113e096a 100644 --- a/src/http.c +++ b/src/http.c @@ -1323,6 +1323,7 @@ free_hstat (struct http_stat *hs) xfree_null (hs->rderrmsg); xfree_null (hs->local_file); xfree_null (hs->orig_file_name); + xfree_null (hs->message); /* Guard against being called twice. */ hs->newloc = NULL; @@ -1442,6 +1443,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy) hs->newloc = NULL; hs->remote_time = NULL; hs->error = NULL; + hs->message = NULL; conn = u; @@ -2702,7 +2704,7 @@ Remote file exists.\n\n")); logprintf (LOG_NONVERBOSE, _("%s URL:%s %2d %s\n"), tms, u->url, hstat.statcode, - hstat.message ? escnonprint (hstat.message) : ""); + hstat.message ? quotearg_style (escape_quoting_style, hstat.message) : ""); goto exit; } }