]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
removed unused variable
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 17 Sep 2014 07:13:44 +0000 (09:13 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 17 Sep 2014 07:13:44 +0000 (09:13 +0200)
lib/verify-tofu.c

index d646f30b3c78eb9b829b5ebccfcdaaa5fff216a6..8ef81eef3619efefa3c4da104b1f707dcf4181db 100644 (file)
@@ -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;
 }