]> sjero.net Git - wget/commitdiff
[svn] Allow null MESSAGE.
authorhniksic <devnull@localhost>
Wed, 6 Jul 2005 09:25:12 +0000 (02:25 -0700)
committerhniksic <devnull@localhost>
Wed, 6 Jul 2005 09:25:12 +0000 (02:25 -0700)
src/ChangeLog
src/http.c

index ab3a2d8906cff3495de92dc228b28eb3a9a81bdd..ec46ecae4ad4fe0f0267e639dafcee0c7f9c8fca 100644 (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>
 
        * cmpt.c (timegm): Handle years after 2099.
index 3428f8610b48eee75d9f700640f381dd3b612507..6f298e6028b34bca1a6847118a8cb4a9b904f73a 100644 (file)
@@ -1704,7 +1704,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
     hs->error = xstrdup (_("(no description)"));
   else
     hs->error = xstrdup (message);
-  xfree (message);
+  xfree_null (message);
 
   type = resp_header_strdup (resp, "Content-Type");
   if (type)