scene: fix calloc size mismatch
This commit is contained in:
parent
fc1ed72bdc
commit
eb5f23d6d0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue