]> PatchyGit - patchyircd.git/commitdiff
fix warning on windows
authorEgor <egor@patchysicp.xyz>
Sat, 18 Feb 2023 14:39:36 +0000 (16:39 +0200)
committerEgor <egor@patchysicp.xyz>
Sat, 18 Feb 2023 14:39:36 +0000 (16:39 +0200)
main.c

diff --git a/main.c b/main.c
index cbaeb66..3c13823 100644 (file)
--- a/main.c
+++ b/main.c
@@ -28,7 +28,7 @@ static BOOL WINAPI on_sigint(DWORD dwCtrlType)
 {
        if ((dwCtrlType == CTRL_C_EVENT || dwCtrlType == CTRL_CLOSE_EVENT) && is_running) {
                is_running = 0;
-               char x;
+               char x = 0;
                if (self_sock != INVALID_SOCKET) {
                        send(self_sock, &x, 0, 0); // FIXME: this could EAGAIN in theory
                }