summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-10-21 18:55:48 +0200
committerBen Fuhrmannek2021-10-21 18:55:48 +0200
commit8e95c5d30f197716ba132e3f2494c5e220f3e5cd (patch)
tree8770753fa8f5f94a468c995d904c5362af48f0de /src/sp_utils.c
parent2ffe94c9366f96700ec5f747385ac07307a012a5 (diff)
added some array initialization, just in case.
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c4
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
73int compute_hash(const char* const restrict filename, 73int 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