Set local variable to 0 to avoid build error
authorPaul Yang <paulyang.inf@gmail.com>
Sun, 4 Jun 2017 19:41:19 +0000 (03:41 +0800)
committerMatt Caswell <matt@openssl.org>
Tue, 6 Jun 2017 16:50:06 +0000 (17:50 +0100)
Signed-off-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3614)

test/x509_check_cert_pkey_test.c

index 7151c17..e94b18b 100644 (file)
@@ -27,7 +27,7 @@ static int test_x509_check_cert_pkey(const char *c, const char *k,
     X509 *x509 = NULL;
     X509_REQ *x509_req = NULL;
     EVP_PKEY *pkey = NULL;
-    int ret = 0, type = 0, expected = 0, result;
+    int ret = 0, type = 0, expected = 0, result = 0;
 
     /*
      * we check them first thus if fails we don't need to do