]> granicus.if.org Git - python/commitdiff
remove useless and defined initialization (closes #15921)
authorBenjamin Peterson <benjamin@python.org>
Tue, 11 Sep 2012 16:05:05 +0000 (12:05 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 11 Sep 2012 16:05:05 +0000 (12:05 -0400)
Modules/selectmodule.c

index 5b5eb92cc6880073219d12f691be93e16bd7c79f..7cec49bc41022e1d12bb888f7cfc26c686368b17 100644 (file)
@@ -239,7 +239,7 @@ select_select(PyObject *self, PyObject *args)
 #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;