mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
fixed a stupid C error
This commit is contained in:
parent
ed17c7afd0
commit
59334400a1
10 changed files with 82 additions and 88 deletions
|
@ -63,13 +63,7 @@ do_delete_key( const char *username, int secret, int *r_sec_avail )
|
|||
*r_sec_avail = 0;
|
||||
|
||||
/* search the userid */
|
||||
memset (&desc, 0, sizeof desc);
|
||||
desc.mode = classify_user_id (username,
|
||||
desc.u.kid,
|
||||
desc.u.fpr,
|
||||
&desc.u.name,
|
||||
NULL);
|
||||
|
||||
classify_user_id (username, &desc);
|
||||
rc = desc.mode? keydb_search (hd, &desc, 1):G10ERR_INV_USER_ID;
|
||||
if (rc) {
|
||||
log_error (_("key `%s' not found: %s\n"), username, g10_errstr (rc));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue