summaryrefslogtreecommitdiffstats
path: root/crypto/armcap.c
diff options
context:
space:
mode:
authorfangming.fang <fangming.fang@arm.com>2021-12-28 04:13:21 +0000
committerTomas Mraz <tomas@openssl.org>2022-11-09 15:30:08 +0100
commit490934c61bdf015067c27a24243a76db186413be (patch)
tree4a545f70f03196b901078e5f173eca653e28f139 /crypto/armcap.c
parentf53caf04eba061193055392934ad2e8c4346b0ec (diff)
fix building failure when using -Wconditional-uninitialized
Use clang -Wconditional-uninitialized to build, the error "initialize the variable 'buffer_size' to silence this warning" will be reported. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17375) (cherry picked from commit abc4345a19430869b9a8925c6defc9e9ce977429)
Diffstat (limited to 'crypto/armcap.c')
-rw-r--r--crypto/armcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/armcap.c b/crypto/armcap.c
index 429b7426b3..6fd7a37fa1 100644
--- a/crypto/armcap.c
+++ b/crypto/armcap.c
@@ -65,7 +65,7 @@ size_t OPENSSL_rndrrs_bytes(unsigned char *buf, size_t len);
static size_t OPENSSL_rndr_wrapper(size_t (*func)(unsigned char *, size_t), unsigned char *buf, size_t len)
{
- size_t buffer_size;
+ size_t buffer_size = 0;
int i;
for (i = 0; i < 8; i++) {