From cd1e4911caf5f7f4668303ce6f7027da6b6650c4 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 2 Jun 2010 21:12:05 -0400 Subject: [PATCH] Local variable initialization for s_embar() Or we may potentially return an uninitialized value. --- lib/hcrypto/imath/imath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hcrypto/imath/imath.c b/lib/hcrypto/imath/imath.c index 4e47a76ce..0079bafd0 100644 --- a/lib/hcrypto/imath/imath.c +++ b/lib/hcrypto/imath/imath.c @@ -3016,7 +3016,7 @@ STATIC mp_result s_embar(mp_int a, mp_int b, mp_int m, mp_int mu, mp_int c) { mp_digit *db, *dbt, umu, d; mpz_t temp[3]; - mp_result res; + mp_result res = 0; int last = 0; umu = MP_USED(mu); db = MP_DIGITS(b); dbt = db + MP_USED(b) - 1;