mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-21 06:59:44 -05:00
scene: fix calloc size mismatch
This commit is contained in:
parent
fc1ed72bdc
commit
eb5f23d6d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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_scene_output *wlr_scene_output_create(struct wlr_scene *scene,
|
||||||
struct wlr_output *output) {
|
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) {
|
if (scene_output == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue