diff --git a/src/ChangeLog b/src/ChangeLog index 6d224fe7..641b0991 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Hrvoje Niksic + + * init.c (cmd_spec_useragent): Free the old value of + opt.useragent before setting the new one. + 2005-04-27 Mauro Tortonesi * main.c: Map --ftp-password, --http-password and --proxy-password to diff --git a/src/init.c b/src/init.c index c0bbee52..14f3a87b 100644 --- a/src/init.c +++ b/src/init.c @@ -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; }