Code cosmetics: init a vector.

This commit is contained in:
Felipe Zimmerle 2017-05-28 22:27:10 -03:00
parent e1d3abc8e7
commit a90b2a3ff7
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -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<const unsigned char *>(input.c_str()),