mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Code cosmetics: init a vector.
This commit is contained in:
parent
e1d3abc8e7
commit
a90b2a3ff7
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user