mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +00:00
gh-128452: fix warning in socketmodule.c (#129478)
This commit is contained in:
parent
10ee2d9d3b
commit
c07ac3c86a
1 changed files with 2 additions and 0 deletions
|
@ -2952,6 +2952,8 @@ sock_accept(PyObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
|
|
||||||
ctx.addrlen = &addrlen;
|
ctx.addrlen = &addrlen;
|
||||||
ctx.addrbuf = &addrbuf;
|
ctx.addrbuf = &addrbuf;
|
||||||
|
ctx.result = INVALID_SOCKET;
|
||||||
|
|
||||||
if (sock_call(s, 0, sock_accept_impl, &ctx) < 0)
|
if (sock_call(s, 0, sock_accept_impl, &ctx) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
newfd = ctx.result;
|
newfd = ctx.result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue