Skip to content

Commit ed67ed2

Browse files
kumaraditya303srinivasreddy
authored andcommitted
pythongh-128452: fix warning in socketmodule.c (python#129478)
1 parent 23ce6ee commit ed67ed2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/socketmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,6 +2952,8 @@ sock_accept(PyObject *self, PyObject *Py_UNUSED(ignored))
29522952

29532953
ctx.addrlen = &addrlen;
29542954
ctx.addrbuf = &addrbuf;
2955+
ctx.result = INVALID_SOCKET;
2956+
29552957
if (sock_call(s, 0, sock_accept_impl, &ctx) < 0)
29562958
return NULL;
29572959
newfd = ctx.result;

0 commit comments

Comments
 (0)