mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Use struct initializers instead of memset()
This is a bit more type-safe.
This commit is contained in:
parent
4966857f21
commit
7a9f8d8d6b
34 changed files with 134 additions and 113 deletions
|
|
@ -42,7 +42,7 @@ static void slot_reset(struct wlr_swapchain_slot *slot) {
|
|||
wl_list_remove(&slot->release.link);
|
||||
}
|
||||
wlr_buffer_drop(slot->buffer);
|
||||
memset(slot, 0, sizeof(*slot));
|
||||
*slot = (struct wlr_swapchain_slot){0};
|
||||
}
|
||||
|
||||
void wlr_swapchain_destroy(struct wlr_swapchain *swapchain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue