X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhtml-url.c;h=cbaffb25cb4550e3040fb2644663f566e40f4211;hp=6e8860834338425ac3e9baa878b3d12300623a70;hb=44a22c78a76e6733dd4d420a236be0963f00f4c5;hpb=49061b72b630e248b4e1df0593a2198b2ed612fb diff --git a/src/html-url.c b/src/html-url.c index 6e886083..cbaffb25 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -756,9 +756,11 @@ get_urls_file (const char *file) url = url_parse (url_text, &up_error_code, NULL); if (!url) { + char *error = url_error (url_text, up_error_code); logprintf (LOG_NOTQUIET, _("%s: Invalid URL %s: %s\n"), - file, url_text, url_error (up_error_code)); + file, url_text, error); xfree (url_text); + xfree (error); continue; } xfree (url_text);