summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index cd6df92..9c5fa54 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -780,7 +780,7 @@ internal_select(PySocketSockObject *s, int writing)
*/
#define BEGIN_SELECT_LOOP(s) \
{ \
- double deadline, interval = s->sock_timeout; \
+ double deadline = 0, interval = s->sock_timeout; \
int has_timeout = s->sock_timeout > 0.0; \
if (has_timeout) { \
deadline = _PyTime_FloatTime() + s->sock_timeout; \