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;
|
int code = CGE_NET_ENOMEM;
|
||||||
|
|
||||||
if ((socket = malloc(sizeof(*socket)))) {
|
if ((socket = malloc(sizeof(*socket)))) {
|
||||||
code = CGE_NET_EOK;
|
|
||||||
if ((code = socketInit(socket, domain, type))) {
|
if ((code = socketInit(socket, domain, type))) {
|
||||||
free(socket);
|
free(socket);
|
||||||
socket = NULL;
|
socket = NULL;
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ CgeNetSocket *CgeNetOpen(int domain, int type, int *result) {
|
|||||||
int code = CGE_NET_ENOMEM;
|
int code = CGE_NET_ENOMEM;
|
||||||
|
|
||||||
if ((socket = malloc(sizeof(*socket)))) {
|
if ((socket = malloc(sizeof(*socket)))) {
|
||||||
code = CGE_NET_EOK;
|
|
||||||
if ((code = socketInit(socket, domain, type))) {
|
if ((code = socketInit(socket, domain, type))) {
|
||||||
free(socket);
|
free(socket);
|
||||||
socket = NULL;
|
socket = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user