Commit f340f5ef authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

httpd: handle one error

parent 29cd3492
......@@ -1047,7 +1047,12 @@ httpd_url_t *httpd_UrlNew(httpd_host_t *host, const char *psz_url,
return NULL;
url = xmalloc(sizeof(httpd_url_t));
url = malloc(sizeof (*url));
if (unlikely(url == NULL)) {
return NULL;
url->host = host;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment