summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2015-12-07 12:39:41 +0100
committerJustus Winter <justus@g10code.com>2015-12-07 12:39:41 +0100
commitca06cd7f77acb317c2649c58918908f043dfe6bd (patch)
tree6143873620d1e7b2144b82c955934694bb7ca47f /cipher
parentdd3d06e7f113cf7608f060ceb043262efd0b0c9d (diff)
downloadlibgcrypt-ca06cd7f77acb317c2649c58918908f043dfe6bd.tar.gz
cipher: Initialize 'flags'.
* cipher/ecc.c (ecc_encrypt_raw): Initialize 'flags' to 0. -- Found using the Clang Static Analyzer. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c
index 51621f8e..e4e9139d 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -1242,7 +1242,7 @@ ecc_encrypt_raw (gcry_sexp_t *r_ciph, gcry_sexp_t s_data, gcry_sexp_t keyparms)
gcry_mpi_t data = NULL;
ECC_public_key pk;
mpi_ec_t ec = NULL;
- int flags;
+ int flags = 0;
memset (&pk, 0, sizeof pk);
_gcry_pk_util_init_encoding_ctx (&ctx, PUBKEY_OP_ENCRYPT,