aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.c')
-rw-r--r--src/renderer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer.c b/src/renderer.c
index 7d20b39..ffd46c9 100644
--- a/src/renderer.c
+++ b/src/renderer.c
@@ -30,7 +30,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources)
b_string_t *str = b_string_new();
- blogc_source_t *tmp_source = NULL;
+ b_trie_t *tmp_source = NULL;
char *config_value = NULL;
unsigned int if_count = 0;
@@ -87,7 +87,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources)
case BLOGC_TEMPLATE_VARIABLE_STMT:
if (stmt->value != NULL && tmp_source != NULL) {
- config_value = b_trie_lookup(tmp_source->config, stmt->value);
+ config_value = b_trie_lookup(tmp_source, stmt->value);
if (config_value != NULL)
b_string_append(str, config_value);
break;
@@ -108,7 +108,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources)
case BLOGC_TEMPLATE_IF_STMT:
if (stmt->value != NULL && tmp_source != NULL) {
- if (b_trie_lookup(tmp_source->config, stmt->value) == NULL) {
+ if (b_trie_lookup(tmp_source, stmt->value) == NULL) {
if_skip = if_count;
// at this point we can just skip anything, counting the