]> sjero.net Git - wget/commitdiff
[svn] Initialize DUMMY storage for DT.
authorhniksic <devnull@localhost>
Thu, 2 Oct 2003 21:21:07 +0000 (14:21 -0700)
committerhniksic <devnull@localhost>
Thu, 2 Oct 2003 21:21:07 +0000 (14:21 -0700)
src/ChangeLog
src/retr.c

index b80659493bb9fca9148ec8cf61413f2bbd889ac8..77ade2a907dc5a45c9214c96416414f548828c9c 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * retr.c (retrieve_url): Initialize DUMMY storage for DT.  Caught
+       by valgrind.
+
 2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * html-parse.c (convert_and_copy): Handle numeric entities in
index 9378f60bdee2f8b30845141a89bb7b9ccd7297f3..c0b439e8f79255ae92d22d17cc02aaf9b11fc3b3 100644 (file)
@@ -357,9 +357,12 @@ retrieve_url (const char *origurl, char **file, char **newloc,
   char *saved_post_data = NULL;
   char *saved_post_file_name = NULL;
 
-  /* If dt is NULL, just ignore it.  */
+  /* If dt is NULL, use local storage.  */
   if (!dt)
-    dt = &dummy;
+    {
+      dt = &dummy;
+      dummy = 0;
+    }
   url = xstrdup (origurl);
   if (newloc)
     *newloc = NULL;