From: Tobias Brunner Date: Fri, 22 Nov 2024 13:42:34 +0000 (+0100) Subject: ml: Fix compilation with some compilers X-Git-Tag: 6.0.0rc1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f31d6a9fc4ba76df589abca29dd942425a35174;p=thirdparty%2Fstrongswan.git ml: Fix compilation with some compilers Some (older) compilers complain that "variable-sized object may not be initialized". --- diff --git a/src/libstrongswan/plugins/ml/ml_kem.c b/src/libstrongswan/plugins/ml/ml_kem.c index 22cf305189..409b580842 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;