1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

dirmngr: Fix a wrong compiler warning.

--

  validate.c:1103:13: warning: ‘saltlen’ may be used uninitialized
  in this function [-Wmaybe-uninitialized]
This commit is contained in:
Werner Koch 2022-06-13 17:54:01 +02:00
parent f0b373cec9
commit fb3fd553df
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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);