From: Egor Date: Sat, 18 Feb 2023 14:39:36 +0000 (+0200) Subject: fix warning on windows X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=673fdbdbc6b20ae029f22a0d82db4849f1064aea;p=patchyircd.git fix warning on windows --- diff --git a/main.c b/main.c index cbaeb66..3c13823 100644 --- 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 }