diff options
author | Daniel Neus <[email protected]> | 2016-01-08 13:47:50 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-03-02 21:23:16 +0100 |
commit | 9f8ea50be8160c96ece1e11eb55125b9eb42d721 (patch) | |
tree | 09394d8a1f47280d76ecef3e2de94c9b79ef5a68 | |
parent | 94074bac2f71c1c85240a1f9613aeffc66bdc109 (diff) |
fix dead assignment in mce/polyn_gf2m.cpp in polyn_gf2m() found by clang-analyzer
-rw-r--r-- | src/lib/pubkey/mce/polyn_gf2m.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/pubkey/mce/polyn_gf2m.cpp b/src/lib/pubkey/mce/polyn_gf2m.cpp index a957b8cc1..e0d1c5a65 100644 --- a/src/lib/pubkey/mce/polyn_gf2m.cpp +++ b/src/lib/pubkey/mce/polyn_gf2m.cpp @@ -644,13 +644,11 @@ polyn_gf2m::polyn_gf2m(int t, Botan::RandomNumberGenerator& rng, std::shared_ptr coeff(t+1), msp_field(sp_field) { - int i; (*this).set_coef( t, 1); - i = 0; int degree = 0; do { - for (i = 0; i < t; ++i) + for (int i = 0; i < t; ++i) { (*this).set_coef( i, random_code_element(sp_field->get_cardinality(), rng)); } |