summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-07-07 07:24:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-07-07 07:24:26 (GMT)
commite5fa8b0b0d998557b9679ffa3aaec9292fa7855b (patch)
tree8ae3eb45ea5f8f644fde8f7d038892c36cdb2be4 /Modules/socketmodule.c
parent42e1029564645f730e6519d0c6cf3db1014f6c54 (diff)
downloadcpython-e5fa8b0b0d998557b9679ffa3aaec9292fa7855b.zip
cpython-e5fa8b0b0d998557b9679ffa3aaec9292fa7855b.tar.gz
cpython-e5fa8b0b0d998557b9679ffa3aaec9292fa7855b.tar.bz2
initialize variable to appease gcc
Diffstat (limited to 'Modules/socketmodule.c')
-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; \