ml: Fix compilation with some compilers

Some (older) compilers complain that "variable-sized object may not be
initialized".
This commit is contained in:
Tobias Brunner
2024-11-22 14:43:57 +01:00
parent a42e24b762
commit 5f31d6a9fc
+1 -1
View File
@@ -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;