diff options
| author | Ben Fuhrmannek | 2021-10-21 18:55:48 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-10-21 18:55:48 +0200 |
| commit | 8e95c5d30f197716ba132e3f2494c5e220f3e5cd (patch) | |
| tree | 8770753fa8f5f94a468c995d904c5362af48f0de /src/sp_utils.c | |
| parent | 2ffe94c9366f96700ec5f747385ac07307a012a5 (diff) | |
added some array initialization, just in case.
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 | ||
