1
0
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:
hniksic 2003-10-02 14:21:07 -07:00
parent 2e8899bc10
commit f70c6cacb9
2 changed files with 10 additions and 2 deletions

View 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> 2003-10-02 Hrvoje Niksic <hniksic@xemacs.org>
* html-parse.c (convert_and_copy): Handle numeric entities in * html-parse.c (convert_and_copy): Handle numeric entities in

View File

@ -357,9 +357,12 @@ retrieve_url (const char *origurl, char **file, char **newloc,
char *saved_post_data = NULL; char *saved_post_data = NULL;
char *saved_post_file_name = NULL; char *saved_post_file_name = NULL;
/* If dt is NULL, just ignore it. */ /* If dt is NULL, use local storage. */
if (!dt) if (!dt)
dt = &dummy; {
dt = &dummy;
dummy = 0;
}
url = xstrdup (origurl); url = xstrdup (origurl);
if (newloc) if (newloc)
*newloc = NULL; *newloc = NULL;