fix scan-build 272 warnings

This commit is contained in:
toddouska
2013-03-27 12:32:22 -07:00
parent 7d82bec7fc
commit 6d8246e98c
3 changed files with 4 additions and 7 deletions

View File

@@ -1565,10 +1565,8 @@ void fp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp)
#endif
#if defined(USE_MEMSET)
/* now zero the buff */
XMEMSET(c, 0, sizeof c);
#endif
pa = m->used;
/* copy the input */
@@ -1576,11 +1574,6 @@ void fp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp)
for (x = 0; x < oldused; x++) {
c[x] = a->dp[x];
}
#if !defined(USE_MEMSET)
for (; x < 2*pa+1; x++) {
c[x] = 0;
}
#endif
MONT_START;
for (x = 0; x < pa; x++) {