aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2026-09-17 16:50:38 +0200
committerWerner Koch <[email protected]>2026-09-17 16:50:51 +0200
commit0c67fae17343478b2ae7f9bc0df4b2c38915e9c2 (patch)
tree8cc2b9996bb45b6c856c66f08aad6626a8562b8c
parentgpgconf: Print more info from VERSION if found. (diff)
downloadgnupg-0c67fae17343478b2ae7f9bc0df4b2c38915e9c2.tar.gz
gnupg-0c67fae17343478b2ae7f9bc0df4b2c38915e9c2.zip
gpg: Avoid wrong compiler warning
* g10/pkglue.c (do_encrypt_kem): Init variable.
-rw-r--r--g10/pkglue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/pkglue.c b/g10/pkglue.c
index 41a2a5801..88efeb8df 100644
--- a/g10/pkglue.c
+++ b/g10/pkglue.c
@@ -730,6 +730,9 @@ do_encrypt_kem (PKT_public_key *pk, gcry_mpi_t data, int seskey_algo,
}
wipememory (inputbuf, sizeof inputbuf);
}
+ kyber_ct_len = 0; /* Avoid false compiler warning. Its use is
+ * actually controlled by the only_ecc
+ * condition. */
}
else /* !only_ecc */
{