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 <ktdreyer@ktdreyer.com>
This commit is contained in:
parent
c82028641f
commit
1c802697c1
@ -22,7 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
int mp_prime_next_prime(mp_int *a, int t, int bbs_style)
|
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_digit res_tab[PRIME_SIZE], step, kstep;
|
||||||
mp_int b;
|
mp_int b;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user