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

stsc's patch to initialize, free hs->message.

This commit is contained in:
Micah Cowan 2008-06-23 12:54:50 -07:00
parent 00410e41c7
commit 25585dce47
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-06-22 Steven Schubiger <stsc@members.fsf.org>
* http.c: Explicitly initialize and deallocate the message
string used by the -nv --spider functionality.
2008-06-22 Steven Schubiger <schubiger@gmail.com> 2008-06-22 Steven Schubiger <schubiger@gmail.com>
* http.c: Make -nv --spider include the file's name when it * http.c: Make -nv --spider include the file's name when it

View File

@ -1323,6 +1323,7 @@ free_hstat (struct http_stat *hs)
xfree_null (hs->rderrmsg); xfree_null (hs->rderrmsg);
xfree_null (hs->local_file); xfree_null (hs->local_file);
xfree_null (hs->orig_file_name); xfree_null (hs->orig_file_name);
xfree_null (hs->message);
/* Guard against being called twice. */ /* Guard against being called twice. */
hs->newloc = NULL; hs->newloc = NULL;
@ -1442,6 +1443,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
hs->newloc = NULL; hs->newloc = NULL;
hs->remote_time = NULL; hs->remote_time = NULL;
hs->error = NULL; hs->error = NULL;
hs->message = NULL;
conn = u; conn = u;