]> sjero.net Git - wget/blobdiff - src/html-url.c
Removed commented *printf and use quote_n() for quoting several args
[wget] / src / html-url.c
index 6e8860834338425ac3e9baa878b3d12300623a70..c954cb97191b83f87b27a149696c1bcb66982001 100644 (file)
@@ -571,7 +571,6 @@ tag_handle_meta (int tagid, struct taginfo *tag, struct map_context *ctx)
       if (!mcharset)
         return;
 
-      /*logprintf (LOG_VERBOSE, "Meta tag charset : %s\n", quote (mcharset));*/
       xfree_null (meta_charset);
       meta_charset = mcharset;
     }
@@ -756,9 +755,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);