https://github.com/python/cpython/commit/c07ac3c86a8f5021e27bf2c27c6bf0a25229d846
commit: c07ac3c86a8f5021e27bf2c27c6bf0a25229d846
branch: main
author: Kumar Aditya <[email protected]>
committer: kumaraditya303 <[email protected]>
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;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]