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 /config.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 'config.c')
| -rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3213,7 +3213,7 @@ config_load(struct config *conf, const char *conf_path, ret = false; } else { conf->fonts[0].count = 1; - conf->fonts[0].arr = malloc(sizeof(font)); + conf->fonts[0].arr = xmalloc(sizeof(font)); conf->fonts[0].arr[0] = font; } } |
