saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 26b73028068d028282fd9e8e4dbba863555f559a
parent fc39c3004aa41ff9b5a1204b9aed7198dd00b99b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  9 Dec 2016 01:18:53 +0100

fix setvar on override for first variable match

Diffstat:
Msaait.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/saait.c b/saait.c @@ -138,6 +138,8 @@ setvar(struct variable **vars, struct variable *var, int override) var->next = v->next; if (p) p->next = var; + else + *vars = var; free(v->key); free(v->value); free(v);