From: Howard Chu Date: Thu, 25 Jan 2018 15:40:26 +0000 (+0000) Subject: Avoid unnecessary C99 initializers X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=650b4822ce2916ae16e4bfae18bd6af97451c2f4;p=openldap Avoid unnecessary C99 initializers --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 8cd98b4ac9..d212b6a692 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -885,7 +885,7 @@ tlso_session_pinning( LDAP *ld, tls_session *sess, char *hashalg, struct berval tlso_session *s = (tlso_session *)sess; unsigned char *tmp, digest[EVP_MAX_MD_SIZE]; struct berval key, - keyhash = { .bv_val = digest, .bv_len = sizeof(digest) }; + keyhash = { sizeof(digest), digest }; X509 *cert = SSL_get_peer_certificate(s); int len, rc = LDAP_SUCCESS;