From a3330e0a8ad470c8206410a67600cc0a62887c32 Mon Sep 17 00:00:00 2001 From: baylej Date: Wed, 3 May 2017 23:24:58 +0200 Subject: Fix an issue when using imbricated if-else blocks `valid_else` is not correctly set when `evaluate` is true --- src/blogc/renderer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blogc/renderer.c b/src/blogc/renderer.c index 17684a5..cee9ef9 100644 --- a/src/blogc/renderer.c +++ b/src/blogc/renderer.c @@ -361,6 +361,9 @@ blogc_render(bc_slist_t *tmpl, bc_slist_t *sources, bc_trie_t *config, bool list } } } + else { + valid_else = false; + } free(defined); defined = NULL; if_not = false; -- cgit v1.2.3-18-g5258