mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
* g10/keydb.h (get_seckey_byname): Rename from this... (get_seckey_default): ... to this. Drop the parameter name. Update users. * g10/getkey.c (get_seckey_byname): Rename from this... (get_seckey_default): ... to this. Drop the parameter name. Drop the code which assumed that NAME is not NULL. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
parent
dc69804ab0
commit
80dbf8006f
3 changed files with 4 additions and 9 deletions
|
@ -714,7 +714,7 @@ default_recipient(void)
|
|||
if( !opt.def_recipient_self )
|
||||
return NULL;
|
||||
pk = xmalloc_clear( sizeof *pk );
|
||||
i = get_seckey_byname (pk, NULL);
|
||||
i = get_seckey_default (pk);
|
||||
if( i ) {
|
||||
free_public_key( pk );
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue