mirror of
https://github.com/LukeSmithxyz/st.git
synced 2025-04-04 18:41:08 +02:00
Set errno to zero before allocating RAM
This commit is contained in:
parent
c882ef2f60
commit
76c66cdfc5
1 changed files with 1 additions and 0 deletions
1
hb.c
1
hb.c
|
@ -125,6 +125,7 @@ hbtransformsegment(XftFont *xfont, const Glyph *string, hb_codepoint_t *codepoin
|
|||
}
|
||||
|
||||
/* Prep user features for OpenType tags. */
|
||||
errno = 0;
|
||||
hb_feature_t *ufeats = calloc(numuserfeats, sizeof(hb_feature_t));
|
||||
if (errno == ENOMEM)
|
||||
ufeats = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue