mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04: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
config.c
2
config.c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue