X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Finit.c;h=14f3a87b990b9fc7693391e344e1f98b672001f2;hb=993ba1ca75f222cd172e40d2aafe931beb0245a6;hp=c0bbee525eb16367ceb94444f3d434964a76951f;hpb=4bbcdf2edcfd1fee753204d8a879591ad62d1f63;p=wget 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; }