From e5fa8b0b0d998557b9679ffa3aaec9292fa7855b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 7 Jul 2016 00:24:26 -0700 Subject: [PATCH] initialize variable to appease gcc --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index cd6df92581..9c5fa54b89 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; \ -- 2.50.1