diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2024-01-25 07:03:50 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2024-01-25 07:03:50 +0000 |
| commit | 91b22ae21acd0b3171814b47b0dead027f8da779 (patch) | |
| tree | 6504247289226858803cded93ffff0dd8aafcad0 /server.c | |
| parent | wayland: 'mode' is unused when LOG_ENABLE_DBG is not set (diff) | |
Replace unchecked allocations with calls to xmalloc.h functions
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || |
