From a90b2a3ff70612160c9456ba1988147ae7ee0790 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Sun, 28 May 2017 22:27:10 -0300 Subject: [PATCH] Code cosmetics: init a vector. --- src/utils/sha1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sha1.cc b/src/utils/sha1.cc index 38a9a4f1..1bff5a44 100644 --- a/src/utils/sha1.cc +++ b/src/utils/sha1.cc @@ -25,7 +25,7 @@ namespace Utils { std::string Sha1::hexdigest(const std::string& input) { - unsigned char digest[20]; + unsigned char digest[20] = { 0 }; static const char* const lut = "0123456789abcdef"; mbedtls_sha1(reinterpret_cast(input.c_str()),