diff --git a/src/ChangeLog b/src/ChangeLog index b8065949..77ade2a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-10-02 Hrvoje Niksic + + * retr.c (retrieve_url): Initialize DUMMY storage for DT. Caught + by valgrind. + 2003-10-02 Hrvoje Niksic * html-parse.c (convert_and_copy): Handle numeric entities in diff --git a/src/retr.c b/src/retr.c index 9378f60b..c0b439e8 100644 --- a/src/retr.c +++ b/src/retr.c @@ -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;