Don't read uninitialised value.

From 1d03522625
This commit is contained in:
Matt Johnston 2018-03-05 16:50:24 +08:00
parent 084ff9b4c8
commit 145fb96989

View File

@ -87,7 +87,7 @@ int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
{
mp_digit *tmpc;
tmpc = c->dp;
for (ix = 0; ix < (pa + 1); ix++) {
for (ix = 0; ix < pa; ix++) {
/* now extract the previous digit [below the carry] */
*tmpc++ = W[ix];
}