]> sjero.net Git - wget/commitdiff
[svn] * retr.c (retrieve_from_file): Initialize `new_file' to NULL to
authorhniksic <devnull@localhost>
Tue, 27 Nov 2001 19:14:34 +0000 (11:14 -0800)
committerhniksic <devnull@localhost>
Tue, 27 Nov 2001 19:14:34 +0000 (11:14 -0800)
prevent seg fault.
Submitted by Ian Abbott in <3C03DE8A.845.D0E495@localhost>.

src/ChangeLog
src/retr.c

index 3afdfbc8374b00f231963fb6a94bd91f7a58eb74..146e89ad0a46c311072ea4234d3c3bab4629299a 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-27  Ian Abbott <abbotti@mev.co.uk>
+
+       * retr.c (retrieve_from_file): Initialize `new_file' to NULL to
+       prevent seg fault.
+
 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * connect.c (connect_to_many): Use address_list_set_faulty to
index 9930cc1e0f4782bf27eea814672329ca344e2696..e519306e59b9d0e1b4bec7c821c9f0459f9d1120 100644 (file)
@@ -538,7 +538,7 @@ retrieve_from_file (const char *file, int html, int *count)
 
   for (cur_url = url_list; cur_url; cur_url = cur_url->next, ++*count)
     {
-      char *filename = NULL, *new_file;
+      char *filename = NULL, *new_file = NULL;
       int dt;
 
       if (cur_url->ignore_when_downloading)