From: Fabian Keil Date: Mon, 24 Aug 2009 18:12:29 +0000 (+0200) Subject: Remove write-only variable tmp_size in _pkcs12_decode_safe_content(). X-Git-Tag: gnutls_2_9_4~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63c767de777fdc23e48718abb8457fa08644ce0f;p=thirdparty%2Fgnutls.git Remove write-only variable tmp_size in _pkcs12_decode_safe_content(). Signed-off-by: Simon Josefsson --- diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c index a0f8312912..3434e7fd7a 100644 --- a/lib/x509/pkcs12.c +++ b/lib/x509/pkcs12.c @@ -50,7 +50,7 @@ _decode_pkcs12_auth_safe (ASN1_TYPE pkcs12, ASN1_TYPE * authen_safe, char oid[MAX_OID_SIZE]; ASN1_TYPE c2 = ASN1_TYPE_EMPTY; gnutls_datum_t auth_safe = { NULL, 0 }; - int tmp_size, len, result; + int len, result; char error_str[ASN1_MAX_ERROR_DESCRIPTION_SIZE]; len = sizeof (oid) - 1; @@ -71,7 +71,6 @@ _decode_pkcs12_auth_safe (ASN1_TYPE pkcs12, ASN1_TYPE * authen_safe, /* Step 1. Read the content data */ - tmp_size = 0; result = _gnutls_x509_read_value (pkcs12, "authSafe.content", &auth_safe, 1); if (result < 0)