summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-06-13 17:54:01 +0200
committerWerner Koch <wk@gnupg.org>2022-06-13 17:54:01 +0200
commitfb3fd553dff98f4a788c39757379d837cc97d8e3 (patch)
tree4c4a6bbc83c013b3c799f63ab0ec8843a77c1c52 /dirmngr
parentgpgsm: New option --compatibility-flags. (diff)
downloadgnupg2-fb3fd553dff98f4a788c39757379d837cc97d8e3.tar.xz
gnupg2-fb3fd553dff98f4a788c39757379d837cc97d8e3.zip
dirmngr: Fix a wrong compiler warning.
-- validate.c:1103:13: warning: ‘saltlen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/validate.c b/dirmngr/validate.c
index c189ea918..55cf9b1e7 100644
--- a/dirmngr/validate.c
+++ b/dirmngr/validate.c
@@ -955,7 +955,7 @@ check_cert_sig (ksba_cert_t issuer_cert, ksba_cert_t cert)
int digestlen;
unsigned char *digest;
int use_pss = 0;
- unsigned int saltlen; /* (use is controlled by use_pss) */
+ unsigned int saltlen = 0; /* (use is actually controlled by use_pss) */
/* Hash the target certificate using the algorithm from that certificate. */
algoid = ksba_cert_get_digest_algo (cert);