mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Replace unchecked allocations with calls to xmalloc.h functions
This commit is contained in:
parent
43e27a8843
commit
91b22ae21a
6 changed files with 7 additions and 7 deletions
2
server.c
2
server.c
|
|
@ -301,7 +301,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
|||
#undef CHECK_BUF_AND_NULL
|
||||
#undef CHECK_BUF
|
||||
|
||||
struct terminal_instance *instance = malloc(sizeof(struct terminal_instance));
|
||||
struct terminal_instance *instance = xmalloc(sizeof(struct terminal_instance));
|
||||
|
||||
const bool need_to_clone_conf =
|
||||
tll_length(overrides)> 0 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue