]> sjero.net Git - wget/blobdiff - src/url.c
aprintf, not asprintf.
[wget] / src / url.c
index 3f4b89920fd2f5d2b37956f3c6f05ba0086051af..fea95584626705000ad32d0d0a126fb83a1ee028 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -900,9 +900,9 @@ url_error (const char *url, int error_code)
       if ((p = strchr (scheme, ':')))
         *p = '\0';
       if (!strcasecmp (scheme, "https"))
-        asprintf (&error, _("HTTPS support not compiled in"));
+        error = aprintf (_("HTTPS support not compiled in"));
       else
-        asprintf (&error, _(parse_errors[error_code]), quote (scheme));
+        error = aprintf (_(parse_errors[error_code]), quote (scheme));
       xfree (scheme);
 
       return error;