From af24ef48a9b716db3bb44b09c456b251043e8ba5 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 11 Nov 2013 10:02:10 +0900 Subject: [PATCH] fix uninitialized variable --- sprout/checksum/sha1.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sprout/checksum/sha1.hpp b/sprout/checksum/sha1.hpp index 5b7250af..1174e878 100644 --- a/sprout/checksum/sha1.hpp +++ b/sprout/checksum/sha1.hpp @@ -396,8 +396,8 @@ namespace sprout { std::uint32_t d = h_[3]; std::uint32_t e = h_[4]; for (std::size_t i = 0; i < 80; ++i) { - std::uint32_t f; - std::uint32_t k; + std::uint32_t f = 0; + std::uint32_t k = 0; if (i<20) { f = (b & c) | (~b & d); k = 0x5A827999;