From fd8dc921fe682c2339ad23c83fd456e430fcbf3c Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Tue, 27 May 2014 18:32:05 +0200 Subject: [PATCH] Initialize DownloadEngine::tokenAverageDuration_ to something. --- src/DownloadEngine.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc index be62dd84..cee9e531 100644 --- a/src/DownloadEngine.cc +++ b/src/DownloadEngine.cc @@ -112,7 +112,8 @@ DownloadEngine::DownloadEngine(std::unique_ptr eventPoll) #endif // HAVE_ARES_ADDR_NODE dnsCache_(make_unique()), option_(nullptr), - tokenIterations_(5000) + tokenIterations_(5000), + tokenAverageDuration_(0.0) { unsigned char sessionId[20]; util::generateRandomKey(sessionId);