From: Rich Salz Date: Fri, 3 Aug 2018 22:03:22 +0000 (-0400) Subject: Use auto-null-initializer X-Git-Tag: OpenSSL_1_1_0i~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0a79ae63700051ddab9e091031dd37ae18182a5;p=oweals%2Fopenssl.git Use auto-null-initializer Thanks to GitHub user YuDudysheva for reporting this. Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/6853) --- diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index 7a393cbe80..b8da982105 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -101,10 +101,7 @@ static const ssl_cipher_table ssl_cipher_table_cipher[SSL_ENC_NUM_IDX] = { {SSL_CHACHA20POLY1305, NID_chacha20_poly1305}, }; -static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX] = { - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL -}; +static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX]; #define SSL_COMP_NULL_IDX 0 #define SSL_COMP_ZLIB_IDX 1