Silence some "maybe used uninitialised" warnings
authorMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 08:09:06 +0000 (09:09 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 08:25:12 +0000 (09:25 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/d1_both.c
ssl/sslv2conftest.c

index c412711af3c6d0deb359707f0d575d0e6cddba33..5d2c2093b2a9fee8c8456de9ce234a8f8f6f7547 100644 (file)
@@ -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);
index 1fd748b11866e0ee2293002a25030bdcf04b7997..2aed9950b91dc9323756d88e4e20f31ff37d213b 100644 (file)
@@ -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();