aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-07 13:28:23 +0100
committerSimon Ser <contact@emersion.fr>2021-11-07 13:28:23 +0100
commiteb5f23d6d028281687d7fa63e82624dcf0e7a734 (patch)
treeeb17795ff29b4097b3a3eec7426c3b50871b5ced
parentfc1ed72bdcb8fc3b541c46a54e28910d600cde43 (diff)
scene: fix calloc size mismatch
-rw-r--r--types/scene/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 940886a6..5a2528d1 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -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;
}