summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-17 09:13:44 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-17 09:25:48 +0200
commit6e01a0b28ebfe58e53b78da4df2214be67c95ddb (patch)
treee0b2137ab48afcb7304788d07bbafb6d4ea3ba7e
parent3f107650c2f76bdc18579757289bdcbacd91aa80 (diff)
downloadgnutls-6e01a0b28ebfe58e53b78da4df2214be67c95ddb.tar.gz
removed unused variable
-rw-r--r--lib/verify-tofu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c
index d646f30b3c..8ef81eef36 100644
--- a/lib/verify-tofu.c
+++ b/lib/verify-tofu.c
@@ -557,7 +557,6 @@ gnutls_store_pubkey(const char *db_name,
const gnutls_datum_t * cert,
time_t expiration, unsigned int flags)
{
- FILE *fd = NULL;
gnutls_datum_t pubkey = { NULL, 0 };
int ret;
char local_file[MAX_FILENAME];
@@ -604,8 +603,6 @@ gnutls_store_pubkey(const char *db_name,
cleanup:
gnutls_free(pubkey.data);
- if (fd != NULL)
- fclose(fd);
return ret;
}