summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2009-08-24 20:12:29 +0200
committerSimon Josefsson <simon@josefsson.org>2009-08-31 12:49:34 +0200
commit63c767de777fdc23e48718abb8457fa08644ce0f (patch)
tree787f3030d15e6611f66d9281322da27505c61896
parent05bbf08b39e67a91b1de34af18550cab347bbd28 (diff)
downloadgnutls-63c767de777fdc23e48718abb8457fa08644ce0f.tar.gz
Remove write-only variable tmp_size in _pkcs12_decode_safe_content().
Signed-off-by: Simon Josefsson <simon@josefsson.org>
-rw-r--r--lib/x509/pkcs12.c3
1 files changed, 1 insertions, 2 deletions
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)