diff --git a/bar/wayland.c b/bar/wayland.c index 2b21b6c..fc3d28a 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -134,11 +134,7 @@ seat_destroy(struct seat *seat) void * bar_backend_wayland_new(void) { - struct wayland_backend *backend = malloc(sizeof(struct wayland_backend)); - *backend = (struct wayland_backend){ - .scale = 1, - }; - return backend; + return calloc(1, sizeof(struct wayland_backend)); } static void