diff options
| author | NIIBE Yutaka <[email protected]> | 2025-12-22 05:49:41 +0100 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-12-22 05:49:41 +0100 |
| commit | d242561dae2699aaa8eb88a1a7ce7a1033471eb0 (patch) | |
| tree | 911a7e57249796539d83652450a2eb1b81bd0df0 /src/keylist.c | |
| parent | tests:w32: Use Sleep instead of _sleep. (diff) | |
| download | gpgme-d242561dae2699aaa8eb88a1a7ce7a1033471eb0.tar.gz gpgme-d242561dae2699aaa8eb88a1a7ce7a1033471eb0.zip | |
Fix a regression wrt the auto-key-locate option.
* src/keylist.c (gpgme_get_key): Don't call gpgme_set_ctx_flag when
it's "".
--
Fixes-commit: 964bc14ccfba84b050c20dc5035414438b10bd74
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/keylist.c')
| -rw-r--r-- | src/keylist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keylist.c b/src/keylist.c index 67ac0fba..31b5b5c3 100644 --- a/src/keylist.c +++ b/src/keylist.c @@ -1544,7 +1544,7 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key, gpgme_set_offline (listctx, gpgme_get_offline (ctx)); gpgme_set_keylist_mode (listctx, gpgme_get_keylist_mode (ctx)); ctx_flag = gpgme_get_ctx_flag (ctx, "auto-key-locate"); - if (ctx_flag != NULL) + if (ctx_flag != NULL && *ctx_flag) gpgme_set_ctx_flag (listctx, "auto-key-locate", ctx_flag); info = gpgme_ctx_get_engine_info (ctx); while (info && info->protocol != proto) |
