From 5f31d6a9fc4ba76df589abca29dd942425a35174 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 22 Nov 2024 14:42:34 +0100 Subject: [PATCH] ml: Fix compilation with some compilers Some (older) compilers complain that "variable-sized object may not be initialized". --- src/libstrongswan/plugins/ml/ml_kem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/plugins/ml/ml_kem.c b/src/libstrongswan/plugins/ml/ml_kem.c index 22cf30518..409b58084 100644 --- a/src/libstrongswan/plugins/ml/ml_kem.c +++ b/src/libstrongswan/plugins/ml/ml_kem.c @@ -200,7 +200,7 @@ static void sample_poly_cbd(private_key_exchange_t *this, uint8_t eta, const int len = 64 * eta; chunk_t seed = chunk_alloca(ML_KEM_SEED_LEN+1); - uint8_t sample_seed[len] = {}; + uint8_t sample_seed[len]; uint32_t t, b; uint16_t x, y; int i, j;