From 1c802697c1a4423685f95d5ef074e8810a915633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Bostr=C3=B6m?= Date: Mon, 20 Jan 2014 13:48:52 -0700 Subject: [PATCH] Initialize variable "res" to MP_NO. This avoids an unitialized variable warning in the compiler. This change originally came from Heimdal's bundled copy of libtommath. Signed-off-by: Ken Dreyer --- bn_mp_prime_next_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bn_mp_prime_next_prime.c b/bn_mp_prime_next_prime.c index b3fe845..b3f9221 100644 --- a/bn_mp_prime_next_prime.c +++ b/bn_mp_prime_next_prime.c @@ -22,7 +22,7 @@ */ int mp_prime_next_prime(mp_int *a, int t, int bbs_style) { - int err, res, x, y; + int err, res = MP_NO, x, y; mp_digit res_tab[PRIME_SIZE], step, kstep; mp_int b;