scene: fix calloc size mismatch

This commit is contained in:
Simon Ser 2021-11-07 13:28:23 +01:00
parent fc1ed72bdc
commit eb5f23d6d0
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ static const struct wlr_addon_interface output_addon_impl = {
struct wlr_scene_output *wlr_scene_output_create(struct wlr_scene *scene,
struct wlr_output *output) {
struct wlr_scene_output *scene_output = calloc(1, sizeof(*output));
struct wlr_scene_output *scene_output = calloc(1, sizeof(*scene_output));
if (scene_output == NULL) {
return NULL;
}