Initialize m1 to suppress compiler warning
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 7 Apr 2014 11:29:39 +0000 (13:29 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 7 Apr 2014 11:29:39 +0000 (13:29 +0200)
src/libstrongswan/plugins/ntru/ntru_public_key.c

index 8cfd32f..a2ff1b2 100644 (file)
@@ -108,7 +108,7 @@ METHOD(ntru_public_key_t, encrypt, bool,
        uint8_t b[MAX_SEC_STRENGTH_LEN];
        uint8_t *t2, *Mtrin, *M, *mask_trits, *ptr;
        uint16_t mod_q_mask, mprime_len = 0;
-       int16_t m1;
+       int16_t m1 = 0;
        chunk_t seed = chunk_empty;
        ntru_trits_t *mask;
        ntru_poly_t *r_poly;