Skip to content

Commit

Permalink
slab: Remove zero from VLA member
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Feb 9, 2024
1 parent 7f9d0cb commit a92b1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a92b1cf

Please sign in to comment.