Commit d5b64a1f authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

http: Use the strdup function instead of reimplementing it.

parent f7ef02bd
......@@ -731,9 +731,8 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
if (strchr(params->url, '?'))
return STATUS_INVALID_PARAMETER;
if (!(url = malloc(strlen(params->url)+1)))
if (!(url = strdup(params->url)))
return STATUS_NO_MEMORY;
strcpy(url, params->url);
if (!(new_entry = malloc(sizeof(struct url))))
{
......
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