From c818d5315672f6e63577de5efa9c4d2910e03215 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 24 Aug 2009 20:12:29 +0200 Subject: [PATCH 09/17] Remove write-only variable tmp_size in _pkcs12_decode_safe_content(). --- lib/x509/pkcs12.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c index a0f8312..3434e7f 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) -- 1.6.4.1