diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-09-27 17:39:01 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-09-27 17:39:01 +0200 |
commit | 31fbf119f396cf67e808cb95e28302dbe45174cb (patch) | |
tree | 653fabab53af9dc948de60e59951aec83c89c70d /crypto/bio | |
parent | 2f7e61b8b21ed472a3667b8922843851f94a3d93 (diff) |
A static const variable is implicitly zero initialized
Older clang versions complain about the explicit initializer
because the first member of the struct is a struct.
But it is not necessary to explicitly initialize it anyway.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19284)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_dgram_pair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_dgram_pair.c b/crypto/bio/bss_dgram_pair.c index f2d6ecbb56..2b99f794e0 100644 --- a/crypto/bio/bss_dgram_pair.c +++ b/crypto/bio/bss_dgram_pair.c @@ -1012,7 +1012,7 @@ static ossl_ssize_t dgram_pair_write_actual(BIO *bio, const char *buf, size_t sz const BIO_ADDR *local, const BIO_ADDR *peer, int is_multi) { - static const BIO_ADDR zero_addr = {0}; + static const BIO_ADDR zero_addr; size_t saved_idx, saved_count; struct bio_dgram_pair_st *b = bio->ptr, *peerb; struct dgram_hdr hdr = {0}; |