From ae58d8a78b3531a330970fba2787d528d63dd83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Gonz=C3=A1lez?= Date: Sat, 27 Jun 2015 21:32:48 +0200 Subject: [PATCH] Fix wgetrc filename creation for Windows * init.c/wgetrc_file_name: Remove obsolete code in WINDOWS code path Reported-by: Gisle Vanem --- src/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/init.c b/src/init.c index a436ef20..027657b9 100644 --- a/src/init.c +++ b/src/init.c @@ -566,9 +566,7 @@ wgetrc_file_name (void) SYSTEM_WGETRC should not be defined under WINDOWS. */ if (!file) { - char *home = home_dir (); - xfree (file); - home = ws_mypath (); + char *home = ws_mypath (); if (home) { file = aprintf ("%s/wget.ini", home);