diff --git a/src/script.c b/src/script.c index f918246..3b2b3f9 100644 --- a/src/script.c +++ b/src/script.c @@ -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;