From 2811068c9c8bacbc5602ac222eb6fa25dce55c85 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Sat, 8 Aug 2026 16:09:11 +0300 Subject: [PATCH] Fix issues found by linter --- posix/Socket.c | 1 - win32/Socket.c | 1 - 2 files changed, 2 deletions(-) diff --git a/posix/Socket.c b/posix/Socket.c index a3f4434..d19680b 100644 --- a/posix/Socket.c +++ b/posix/Socket.c @@ -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; diff --git a/win32/Socket.c b/win32/Socket.c index a7e3b62..825a0fd 100644 --- a/win32/Socket.c +++ b/win32/Socket.c @@ -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;