mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Initialize DUMMY storage for DT.
This commit is contained in:
parent
2e8899bc10
commit
f70c6cacb9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user