Skip to content

Use zalloc for structs

Simon Ser requested to merge emersion/wayland:zalloc into main

When allocating memory for structs, use zalloc instead of malloc. This ensures the memory is zero-initialized, and reduces the risk of forgetting to initialize all struct fields.

Signed-off-by: Simon Ser contact@emersion.fr

Merge request reports