X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhtml-url.c;h=95df8bf98e35b5d93b21da4003326fa5539b45f7;hb=123f5c39669abc055987d69a311785c861494c87;hp=75bec7d97e7c56709fea35044385480466ea8cfb;hpb=2e2ac6ad2fc90eaf46ae5fee0bc4f61dd97b4284;p=wget diff --git a/src/html-url.c b/src/html-url.c index 75bec7d9..95df8bf9 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -729,9 +729,11 @@ get_urls_file (const char *file) url = url_parse (url_text, &up_error_code); 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);