Use zalloc for structs
authorSimon Ser <contact@emersion.fr>
Mon, 31 Jan 2022 21:23:30 +0000 (22:23 +0100)
committerSimon Ser <contact@emersion.fr>
Sat, 5 Feb 2022 14:25:19 +0000 (14:25 +0000)
commit5eb5620cbd317aac4a61e357c3c92bd889d6079b
tree5a3953e2ff74d9ef9ad4e7d32dca9da750b80689
parent4b05ecb8f7506e4e4d62532a0a3500c2b5711b38
Use zalloc for structs

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>
src/connection.c
src/event-loop.c
src/wayland-client.c
src/wayland-server.c
src/wayland-shm.c