]> sjero.net Git - wget/blobdiff - src/recur.c
stsc: better message for "unsupported schemes".
[wget] / src / recur.c
index 729a14e91d9cc2e57dbdd54894a954bfcca41d5f..741ca823094a75c0fd760f44cd126dba88e81216 100644 (file)
@@ -196,8 +196,9 @@ retrieve_tree (const char *start_url)
 
   if (!start_url_parsed)
     {
-      logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url,
-                 url_error (up_error_code));
+      char *error = url_error (start_url, up_error_code);
+      logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url, error);
+      xfree (error);
       return URLERROR;
     }