From fcb07e6d54b879c2673f76a844e3619a1775e0e4 Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 26 May 2014 10:56:42 +0200 Subject: [PATCH] ASCII->POLY: readability --- src/ascii_poly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ascii_poly.c b/src/ascii_poly.c index e0d0b3a..ad1904c 100644 --- a/src/ascii_poly.c +++ b/src/ascii_poly.c @@ -88,7 +88,6 @@ get_bin_arr_to_ascii(char *binary_rep) uint8_t int_arr[int_arr_size]; char *tmp_string = binary_rep; uint32_t i = 0; - char *int_string; while (*tmp_string) { @@ -135,6 +134,7 @@ ascii_to_poly(char *to_poly, ntru_context *ctx) while (out[i]) { uint32_t j = 0; fmpz_poly_t *new_poly = ntru_malloc(sizeof(*new_poly)); + fmpz_poly_init(*new_poly); poly_array[polyc] = new_poly;