From 99516f81b17154ead5b9591f725251f81fa414a1 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 31 Mar 2006 18:11:54 +0000 Subject: [PATCH] Initialize pval. --- crypto/dsa/dsa_ameth.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index 9d55665c4a..b9f7a4d687 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -123,7 +123,7 @@ static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) { DSA *dsa; - void *pval; + void *pval = NULL; int ptype; unsigned char *penc = NULL; int penclen; @@ -143,10 +143,7 @@ static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) ptype = V_ASN1_SEQUENCE; } else - { ptype = V_ASN1_UNDEF; - pval = NULL; - } dsa->write_params=0; penclen = i2d_DSAPublicKey(dsa, &penc); -- 2.25.1