diff Modules/_threadmodule.c @ 68102:e2f96bd29252

Issue #8914: fix various warnings from the Clang static analyzer v254.
author Brett Cannon <bcannon@gmail.com>
date Tue, 22 Feb 2011 20:15:44 +0000
parents b750c45a772c
children 2ddca55e098d
line wrap: on
line diff
--- a/Modules/_threadmodule.c	Tue Feb 22 19:24:33 2011 +0000
+++ b/Modules/_threadmodule.c	Tue Feb 22 20:15:44 2011 +0000
@@ -53,8 +53,9 @@
     _PyTime_timeval curtime;
     _PyTime_timeval endtime;
 
+
+    _PyTime_gettimeofday(&endtime);
     if (microseconds > 0) {
-        _PyTime_gettimeofday(&endtime);
         endtime.tv_sec += microseconds / (1000 * 1000);
         endtime.tv_usec += microseconds % (1000 * 1000);
     }