minor code-style - saait - the most boring static page generator
 (HTM) git clone git://git.codemadness.org/saait
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3efe93e903986896139eac808fc6329a80b7b496
 (DIR) parent 015bc6ccd23e3e1ac78b6373e26d648bff4d08e0
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 26 May 2019 01:59:08 +0200
       
       minor code-style
       
       Diffstat:
         M saait.c                             |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) 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);