Kaydet (Commit) e5fa8b0b authored tarafından Benjamin Peterson's avatar Benjamin Peterson

initialize variable to appease gcc

üst 42e10295
...@@ -780,7 +780,7 @@ internal_select(PySocketSockObject *s, int writing) ...@@ -780,7 +780,7 @@ internal_select(PySocketSockObject *s, int writing)
*/ */
#define BEGIN_SELECT_LOOP(s) \ #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; \ int has_timeout = s->sock_timeout > 0.0; \
if (has_timeout) { \ if (has_timeout) { \
deadline = _PyTime_FloatTime() + s->sock_timeout; \ deadline = _PyTime_FloatTime() + s->sock_timeout; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment