summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-05-28 17:08:12 +0200
committerWerner Koch <wk@gnupg.org>2024-05-28 17:08:12 +0200
commit28c705a3be5c4aec477719d652b503568abc88a0 (patch)
tree0551e98e710eaf752409257d16cdd306afa3e50d /sm
parentscd: Avoid buffer overrun with more than 16 PC/SC readers. (diff)
downloadgnupg2-28c705a3be5c4aec477719d652b503568abc88a0.tar.xz
gnupg2-28c705a3be5c4aec477719d652b503568abc88a0.zip
gpgsm: Silence a lint warning
* sm/keydb.c (keydb_search): Init skipped. -- Skipped is not actually used. This is part of GnuPG-bug-id: 7129 Reported-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'sm')
-rw-r--r--sm/keydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keydb.c b/sm/keydb.c
index 151ae8103..9d704a110 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -1611,7 +1611,7 @@ keydb_search (ctrl_t ctrl, KEYDB_HANDLE hd,
KEYDB_SEARCH_DESC *desc, size_t ndesc)
{
gpg_error_t err = gpg_error (GPG_ERR_EOF);
- unsigned long skipped;
+ unsigned long skipped = 0;
int i;
if (!hd)