diff options
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index ff85494..2f0f565 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -72,8 +72,8 @@ void sp_log_msgf(char const* restrict feature, int level, int type, | |||
| 72 | 72 | ||
| 73 | int compute_hash(const char* const restrict filename, | 73 | int compute_hash(const char* const restrict filename, |
| 74 | char* restrict file_hash) { | 74 | char* restrict file_hash) { |
| 75 | unsigned char buf[1024]; | 75 | unsigned char buf[1024] = {0}; |
| 76 | unsigned char digest[SHA256_SIZE]; | 76 | unsigned char digest[SHA256_SIZE] = {0}; |
| 77 | PHP_SHA256_CTX context; | 77 | PHP_SHA256_CTX context; |
| 78 | size_t n; | 78 | size_t n; |
| 79 | 79 | ||
