Use new not dNew.
This commit is contained in:
@ -893,7 +893,7 @@ static ClientInfo *File_add_client(int sock_fd)
|
|||||||
{
|
{
|
||||||
ClientInfo *new_client;
|
ClientInfo *new_client;
|
||||||
|
|
||||||
new_client = dNew(ClientInfo, 1);
|
new_client = new ClientInfo;
|
||||||
new_client->sh = a_Dpip_dsh_new(sock_fd, sock_fd, 8*1024);
|
new_client->sh = a_Dpip_dsh_new(sock_fd, sock_fd, 8*1024);
|
||||||
new_client->orig_url = NULL;
|
new_client->orig_url = NULL;
|
||||||
new_client->filename = NULL;
|
new_client->filename = NULL;
|
||||||
@ -906,6 +906,7 @@ static ClientInfo *File_add_client(int sock_fd)
|
|||||||
new_client->old_style = OLD_STYLE;
|
new_client->old_style = OLD_STYLE;
|
||||||
|
|
||||||
dList_append(Clients, new_client);
|
dList_append(Clients, new_client);
|
||||||
|
|
||||||
return new_client;
|
return new_client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user