From: Kumar Aditya Date: Fri, 31 Jan 2025 08:11:11 +0000 (+0530) Subject: gh-128452: fix warning in socketmodule.c (#129478) X-Git-Tag: v3.14.0a5~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c07ac3c86a8f5021e27bf2c27c6bf0a25229d846;p=thirdparty%2FPython%2Fcpython.git gh-128452: fix warning in socketmodule.c (#129478) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 01811afa5781..b178eb42ac8e 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2952,6 +2952,8 @@ sock_accept(PyObject *self, PyObject *Py_UNUSED(ignored)) ctx.addrlen = &addrlen; ctx.addrbuf = &addrbuf; + ctx.result = INVALID_SOCKET; + if (sock_call(s, 0, sock_accept_impl, &ctx) < 0) return NULL; newfd = ctx.result;