From 96452eef70f22babb10453c0ff37b9379fdd746a Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Tue, 1 Oct 2024 23:56:14 +0100 Subject: [PATCH] fix maybe uninitialized warning --- src/platform/windows/win_ipclisten.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/windows/win_ipclisten.c b/src/platform/windows/win_ipclisten.c index 84efe4013..e81f4b467 100644 --- a/src/platform/windows/win_ipclisten.c +++ b/src/platform/windows/win_ipclisten.c @@ -92,6 +92,7 @@ ipc_accept_start(ipc_listener *l) if (l->closed) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, NNG_ECLOSED); + rv = NNG_ECLOSED; } else if (ConnectNamedPipe(l->f, &l->io.olpd)) { rv = 0; } else if ((rv = GetLastError()) == ERROR_IO_PENDING) {