aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbaylej <baylej@mrhide.eu>2017-05-03 23:24:58 +0200
committerRafael Martins <rafael@rafaelmartins.eng.br>2017-05-04 00:53:02 +0200
commita3330e0a8ad470c8206410a67600cc0a62887c32 (patch)
tree00f426175224ca07def1200cd5f5f4b2d88adff3 /src
parent34ee836a19c550c1f2b19baa6f4ac3f2a48695d0 (diff)
downloadblogc-a3330e0a8ad470c8206410a67600cc0a62887c32.tar.gz
blogc-a3330e0a8ad470c8206410a67600cc0a62887c32.tar.bz2
blogc-a3330e0a8ad470c8206410a67600cc0a62887c32.zip
Fix an issue when using imbricated if-else blocks
`valid_else` is not correctly set when `evaluate` is true
Diffstat (limited to 'src')
-rw-r--r--src/blogc/renderer.c3
1 files changed, 3 insertions, 0 deletions
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;