1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Allow null MESSAGE.

This commit is contained in:
hniksic 2005-07-06 02:25:12 -07:00
parent cf67080e5e
commit ac4f55a297
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-07-06 Hrvoje Niksic <hniksic@xemacs.org>
* http.c (gethttp): When freeing MESSAGE, take into account that
it can be NULL.
2005-07-05 Hrvoje Niksic <hniksic@xemacs.org> 2005-07-05 Hrvoje Niksic <hniksic@xemacs.org>
* cmpt.c (timegm): Handle years after 2099. * cmpt.c (timegm): Handle years after 2099.

View File

@ -1704,7 +1704,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
hs->error = xstrdup (_("(no description)")); hs->error = xstrdup (_("(no description)"));
else else
hs->error = xstrdup (message); hs->error = xstrdup (message);
xfree (message); xfree_null (message);
type = resp_header_strdup (resp, "Content-Type"); type = resp_header_strdup (resp, "Content-Type");
if (type) if (type)