mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Check calloc return value
This commit is contained in:
parent
06ada15661
commit
739ba1fe65
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));
|
||||
if (!output) {
|
||||
return;
|
||||
}
|
||||
|
||||
output->wlr_output = wlr_output;
|
||||
output->server = server;
|
||||
output->damage = wlr_output_damage_create(wlr_output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue