From a92b1cfcd6534c31aa04423c022c794f19f8ae11 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Fri, 9 Feb 2024 15:41:55 +0100 Subject: [PATCH] slab: Remove zero from VLA member Signed-off-by: Siddharth Chandrasekaran --- src/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slab.c b/src/slab.c index e10c287..a3b7115 100644 --- a/src/slab.c +++ b/src/slab.c @@ -13,7 +13,7 @@ struct slab_unit { uint32_t leased; uint32_t canary; - uint8_t data[0]; + uint8_t data[]; } __packed; int slab_init(slab_t *slab, size_t slab_size,