From: zhouzilong Date: Mon, 25 Apr 2022 06:40:24 +0000 (+0800) Subject: Clear unused variables in X509_print_ex() X-Git-Tag: openssl-3.2.0-alpha1~2740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36699c12d37c5bef000cbe3d9b4b2b89bee4e17e;p=thirdparty%2Fopenssl.git Clear unused variables in X509_print_ex() CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18167) --- diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index 3e022ccbcb2..73f6489cac6 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -55,7 +55,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, { long l; int ret = 0, i; - char *m = NULL, mlch = ' '; + char mlch = ' '; int nmindent = 0, printok = 0; EVP_PKEY *pkey = NULL; const char *neg; @@ -222,7 +222,6 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, } ret = 1; err: - OPENSSL_free(m); return ret; }