diff options
author | fangming.fang <fangming.fang@arm.com> | 2021-12-28 04:13:21 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-01-05 09:59:31 +0100 |
commit | abc4345a19430869b9a8925c6defc9e9ce977429 (patch) | |
tree | 707e0e8d6bedc68db3314102b2289885faf8c509 /crypto/armcap.c | |
parent | e06c0a2870c55aa4e66108ca071e7da7fd00b922 (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)
Diffstat (limited to 'crypto/armcap.c')
-rw-r--r-- | crypto/armcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/armcap.c b/crypto/armcap.c index 117c57efe4..72ed0a024a 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++) { |