summaryrefslogtreecommitdiff
path: root/src/common/timers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-12 17:46:09 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-12 21:32:34 -0400
commitf2f729e26b93fe42aeac0c0f99bf9ea8dc62591b (patch)
treea9073ba994607080d71687e04b67f34b76f25528 /src/common/timers.c
parentdb00f24d8be848f5840af913e88d5ae7019c70f6 (diff)
downloadtor-f2f729e26b93fe42aeac0c0f99bf9ea8dc62591b.tar.gz
tor-f2f729e26b93fe42aeac0c0f99bf9ea8dc62591b.zip
Clear up dead-assignment warnings from scan-build
Diffstat (limited to 'src/common/timers.c')
-rw-r--r--src/common/timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/timers.c b/src/common/timers.c
index c43c49c083..42d368baab 100644
--- a/src/common/timers.c
+++ b/src/common/timers.c
@@ -191,7 +191,7 @@ timers_initialize(void)
if (BUG(global_timeouts))
return; // LCOV_EXCL_LINE
- timeout_error_t err;
+ timeout_error_t err = 0;
global_timeouts = timeouts_open(0, &err);
if (!global_timeouts) {
// LCOV_EXCL_START -- this can only fail on malloc failure.