gh-128452: fix warning in socketmodule.c (#129478)
https://github.com/python/cpython/commit/c07ac3c86a8f5021e27bf2c27c6bf0a2522... commit: c07ac3c86a8f5021e27bf2c27c6bf0a25229d846 branch: main author: Kumar Aditya <kumaraditya@python.org> committer: kumaraditya303 <kumaraditya@python.org> date: 2025-01-31T13:41:11+05:30 summary: gh-128452: fix warning in socketmodule.c (#129478) files: M Modules/socketmodule.c diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 01811afa578119..b178eb42ac8e6a 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;
participants (1)
-
kumaraditya303