Skip to content

Commit

Permalink
fix building failure when using -Wconditional-uninitialized
Browse files Browse the repository at this point in the history
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 #17375)
  • Loading branch information
zorrorffm authored and t8m committed Jan 5, 2022
1 parent e06c0a2 commit abc4345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/armcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit abc4345

Please sign in to comment.