Fix issues found by linter
All checks were successful
CI / build-and-analyze (push) Successful in 1m6s
All checks were successful
CI / build-and-analyze (push) Successful in 1m6s
This commit is contained in:
@@ -91,7 +91,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