[Python-checkins] cpython: remove useless and defined initialization (closes #15921)

benjamin.peterson python-checkins at python.org
Tue Sep 11 18:05:24 CEST 2012


http://hg.python.org/cpython/rev/6cdc72f4d82c
changeset: 78994:6cdc72f4d82c
parent: 78991:c3539eb02470
user: Benjamin Peterson <benjamin at python.org>
date: Tue Sep 11 12:05:05 2012 -0400
summary:
 remove useless and defined initialization (closes #15921)
files:
 Modules/selectmodule.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -239,7 +239,7 @@
 #else
 /* 64-bit OS X has struct timeval.tv_usec as an int (and thus still 4
 bytes as required), but no longer defined by a long. */
- long tv_usec = tv.tv_usec;
+ long tv_usec;
 if (_PyTime_ObjectToTimeval(tout, &tv.tv_sec, &tv_usec) == -1)
 return NULL;
 tv.tv_usec = tv_usec;
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /