]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Remove write-only variable tmp_size in _pkcs12_decode_safe_content().
authorFabian Keil <fk@fabiankeil.de>
Mon, 24 Aug 2009 18:12:29 +0000 (20:12 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 31 Aug 2009 10:49:34 +0000 (12:49 +0200)
Signed-off-by: Simon Josefsson <simon@josefsson.org>
lib/x509/pkcs12.c

index a0f8312912a8d9d4c71223363d8b8cae1b0ff6c8..3434e7fd7a28fc2651efe5dd745cd08d0f3ced35 100644 (file)
@@ -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)