--- trunk/Src/wptGPG.cpp 2012/04/14 14:11:03 441 +++ trunk/Src/wptGPG.cpp 2012/04/14 14:23:34 442 @@ -190,12 +190,11 @@ default_key_from_cache (int *ret_no_useable) { gpgme_key_t key, pk; - gpg_keycache_t sec, pub; + gpg_keycache_t sec; const char *s; char *keyid = NULL; sec = keycache_get_ctx (0); - pub = keycache_get_ctx (1); gpg_keycache_rewind (sec); while (!gpg_keycache_next_key (sec, 1, &key)) { if (key_is_useable (key) && !get_pubkey (key->subkeys->keyid, &pk)) {