Fixed an uninitialized variable use in check_cert().
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 21:47:39 +0000 (23:47 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 21:47:39 +0000 (23:47 +0200)
src/common/ssl_certificate.c

index 0a1d02b..75b61e6 100644 (file)
@@ -550,7 +550,7 @@ static guint check_cert(SSLCertificate *cert)
        g_free(buf);
        if (is_file_exist(chain_file)) {
                unsigned char md[128];
-               size_t n;
+               size_t n = 128;
                char *fingerprint;
 
                fp = g_fopen(chain_file, "r");