mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Code cosmetics: init a vector.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Utils {
|
|||||||
|
|
||||||
|
|
||||||
std::string Sha1::hexdigest(const std::string& input) {
|
std::string Sha1::hexdigest(const std::string& input) {
|
||||||
unsigned char digest[20];
|
unsigned char digest[20] = { 0 };
|
||||||
static const char* const lut = "0123456789abcdef";
|
static const char* const lut = "0123456789abcdef";
|
||||||
|
|
||||||
mbedtls_sha1(reinterpret_cast<const unsigned char *>(input.c_str()),
|
mbedtls_sha1(reinterpret_cast<const unsigned char *>(input.c_str()),
|
||||||
|
Reference in New Issue
Block a user