saait

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

commit 3efe93e903986896139eac808fc6329a80b7b496
parent 015bc6ccd23e3e1ac78b6373e26d648bff4d08e0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 26 May 2019 01:59:08 +0200

minor code-style

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

diff --git a/saait.c b/saait.c @@ -171,7 +171,7 @@ setvar(struct variable **vars, struct variable *var, int override) } /* search: set or append */ - for (p = NULL, v = *vars; v; v = v->next) { + for (p = NULL, v = *vars; v; v = v->next, p = v) { if (!strcmp(var->key, v->key)) { if (!override) return; @@ -192,7 +192,6 @@ setvar(struct variable **vars, struct variable *var, int override) v->next = var; return; } - p = v; } } @@ -402,7 +401,7 @@ main(int argc, char *argv[]) break; default: usage(); - } ARGEND; + } ARGEND /* global config */ global = readconfig(configfile);