Skip to content

Commit 8ce7850

Browse files
committed
Work around false-positive warning.
The warning was: ``` s_mp_exptmod_fast.c: In function ‘s_mp_exptmod_fast’: s_mp_exptmod_fast.c:188:21: warning: ‘mp’ may be used uninitialized in this function [-Wmaybe-uninitialized] 188 | if ((err = redux(&res, P, mp)) != MP_OKAY) goto LBL_RES; | ^ s_mp_exptmod_fast.c:25:18: note: ‘mp’ was declared here 25 | mp_digit buf, mp; | ^ ``` Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 68c1463 commit 8ce7850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s_mp_exptmod_fast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
mp_err s_mp_exptmod_fast(const mp_int *G, const mp_int *X, const mp_int *P, mp_int *Y, int redmode)
2323
{
2424
mp_int M[TAB_SIZE], res;
25-
mp_digit buf, mp;
25+
mp_digit buf, mp = 0;
2626
int bitbuf, bitcpy, bitcnt, mode, digidx, x, y, winsize;
2727
mp_err err;
2828

0 commit comments

Comments
 (0)