From ca06cd7f77acb317c2649c58918908f043dfe6bd Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 7 Dec 2015 12:39:41 +0100 Subject: cipher: Initialize 'flags'. * cipher/ecc.c (ecc_encrypt_raw): Initialize 'flags' to 0. -- Found using the Clang Static Analyzer. Signed-off-by: Justus Winter --- cipher/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cipher') 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, -- cgit v1.2.1