Replace unchecked allocations with calls to xmalloc.h functions

This commit is contained in:
Craig Barnes 2024-01-25 07:03:50 +00:00
parent 43e27a8843
commit 91b22ae21a
6 changed files with 7 additions and 7 deletions

View file

@ -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;
}
}