X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhtml-url.c;h=cbaffb25cb4550e3040fb2644663f566e40f4211;hb=a459f0aac9eda068f12bc1430d6e59e07a224ddf;hp=6e8860834338425ac3e9baa878b3d12300623a70;hpb=ccd62071dcbdfc0269813746b9f51ff9c23261db;p=wget 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);