src/font.c: oops, a little overzealous

current
Síle Ekaterin Liszka 2023-11-29 21:36:37 -08:00
parent 0ed273b7b6
commit 1309a22a59
1 changed files with 2 additions and 3 deletions

View File

@ -29,11 +29,10 @@ script_t script_create(toml_table_t *table, const char *base_path, node_t *fonts
TOML_GET_KEY(little_endian, "little_endian", toml_bool_in) TOML_GET_KEY(little_endian, "little_endian", toml_bool_in)
#undef TOML_GET_KEY #undef TOML_GET_KEY
node_t *node = font_find(fonts, font_name.u.s); font_t *font = font_find(fonts, font_name.u.s);
if (node == NULL) { if (font == NULL) {
error("couldn't find font ", font_name.u.s); error("couldn't find font ", font_name.u.s);
} }
font_t *font = node->data;
script.filename = filename.u.s; script.filename = filename.u.s;
script.font = *font; script.font = *font;