From 0ee4f13bbaa4de952baf1c9de6c47bbf693711dd Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 22 Aug 2016 09:09:06 +0100 Subject: [PATCH] Silence some "maybe used uninitialised" warnings Reviewed-by: Richard Levitte --- ssl/d1_both.c | 2 +- ssl/sslv2conftest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/d1_both.c b/ssl/d1_both.c index c412711af3..5d2c2093b2 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -1211,7 +1211,7 @@ dtls1_retransmit_message(SSL *s, unsigned short seq, unsigned long frag_off, unsigned long header_length; unsigned char seq64be[8]; struct dtls1_retransmit_state saved_state; - unsigned char save_write_sequence[8]; + unsigned char save_write_sequence[8] = {0, 0, 0, 0, 0, 0, 0, 0}; /*- OPENSSL_assert(s->init_num == 0); diff --git a/ssl/sslv2conftest.c b/ssl/sslv2conftest.c index 1fd748b118..2aed9950b9 100644 --- a/ssl/sslv2conftest.c +++ b/ssl/sslv2conftest.c @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) { BIO *err; int testresult = 0; - int currtest; + int currtest = 0; SSL_library_init(); SSL_load_error_strings(); -- 2.25.1