From 673fdbdbc6b20ae029f22a0d82db4849f1064aea Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 18 Feb 2023 16:39:36 +0200 Subject: [PATCH] fix warning on windows --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.56.0