mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-05 01:41:05 -05:00
Check calloc return value
This commit is contained in:
parent
3dc5caa6a7
commit
456a1422a3
1 changed files with 4 additions and 0 deletions
4
output.c
4
output.c
|
|
@ -363,6 +363,10 @@ handle_new_output(struct wl_listener *listener, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct cg_output *output = calloc(1, sizeof(struct cg_output));
|
struct cg_output *output = calloc(1, sizeof(struct cg_output));
|
||||||
|
if (!output) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
output->wlr_output = wlr_output;
|
output->wlr_output = wlr_output;
|
||||||
output->server = server;
|
output->server = server;
|
||||||
output->damage = wlr_output_damage_create(wlr_output);
|
output->damage = wlr_output_damage_create(wlr_output);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue