mirror of
https://github.com/openssl/openssl.git
synced 2025-03-01 19:28:10 +08:00
Fix VS2019 compile error C4703: potentially uninitialized local pointer variable used.
encode_key2text.c(689): error C4703: potentially uninitialized local pointer variable 'modulus_label' used encode_key2text.c(691): error C4703: potentially uninitialized local pointer variable 'exponent_label' used CLA: trivial Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12845)
This commit is contained in:
parent
37578dc02d
commit
6ef8d2c69b
@ -633,8 +633,8 @@ static int rsa_to_text(BIO *out, const void *key, int selection)
|
||||
{
|
||||
const RSA *rsa = key;
|
||||
const char *type_label = "RSA key";
|
||||
const char *modulus_label;
|
||||
const char *exponent_label;
|
||||
const char *modulus_label = NULL;
|
||||
const char *exponent_label = NULL;
|
||||
const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL;
|
||||
STACK_OF(BIGNUM_const) *factors = NULL;
|
||||
STACK_OF(BIGNUM_const) *exps = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user