mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-22 01:40:43 -05: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
|
|
@ -55,7 +55,7 @@ static void finish_drm_surface(struct wlr_drm_surface *surf) {
|
|||
|
||||
wlr_swapchain_destroy(surf->swapchain);
|
||||
|
||||
memset(surf, 0, sizeof(*surf));
|
||||
*surf = (struct wlr_drm_surface){0};
|
||||
}
|
||||
|
||||
bool init_drm_surface(struct wlr_drm_surface *surf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue