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:
parent
4bbcdf2edc
commit
993ba1ca75
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user