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

[svn] Free the old value of opt.useragent before setting the new one.

This commit is contained in:
hniksic 2005-04-27 15:16:28 -07:00
parent 4bbcdf2edc
commit 993ba1ca75
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-27 Hrvoje Niksic <hniksic@xemacs.org>
* init.c (cmd_spec_useragent): Free the old value of
opt.useragent before setting the new one.
2005-04-27 Mauro Tortonesi <mauro@ferrara.linux.it>
* main.c: Map --ftp-password, --http-password and --proxy-password to

View File

@ -1258,6 +1258,7 @@ cmd_spec_useragent (const char *com, const char *val, void *place_ignored)
exec_name, com, val);
return 0;
}
xfree_null (opt.useragent);
opt.useragent = xstrdup (val);
return 1;
}