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

[svn] * retr.c (retrieve_from_file): Initialize `new_file' to NULL to

prevent seg fault.
Submitted by Ian Abbott in <3C03DE8A.845.D0E495@localhost>.
This commit is contained in:
hniksic 2001-11-27 11:14:34 -08:00
parent 8196a09904
commit 9b202ba261
2 changed files with 6 additions and 1 deletions

View 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

View 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)