src/font.c: oops, a little overzealous
parent
0ed273b7b6
commit
1309a22a59
|
@ -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)
|
||||
#undef TOML_GET_KEY
|
||||
|
||||
node_t *node = font_find(fonts, font_name.u.s);
|
||||
if (node == NULL) {
|
||||
font_t *font = font_find(fonts, font_name.u.s);
|
||||
if (font == NULL) {
|
||||
error("couldn't find font ", font_name.u.s);
|
||||
}
|
||||
font_t *font = node->data;
|
||||
|
||||
script.filename = filename.u.s;
|
||||
script.font = *font;
|
||||
|
|
Loading…
Reference in New Issue