Fix issues found by linter
This commit is contained in:
@@ -90,7 +90,6 @@ CgeNetSocket *CgeNetOpen(int domain, int type, int *result) {
|
||||
int code = CGE_NET_ENOMEM;
|
||||
|
||||
if ((socket = malloc(sizeof(*socket)))) {
|
||||
code = CGE_NET_EOK;
|
||||
if ((code = socketInit(socket, domain, type))) {
|
||||
free(socket);
|
||||
socket = NULL;
|
||||
|
||||
Reference in New Issue
Block a user