From: Andy Spencer Date: Sun, 16 Jun 2013 08:49:46 +0000 (+0000) Subject: Fix bug when adding new config groups X-Git-Url: http://pileus.org/git/?p=lackey;a=commitdiff_plain;h=4fc97c527e3f565ef40d814c16ef5a9058712bc0 Fix bug when adding new config groups --- diff --git a/src/conf.c b/src/conf.c index 5d59d22..740932a 100644 --- a/src/conf.c +++ b/src/conf.c @@ -103,10 +103,10 @@ static void set_value(const char *group, const char *name, if (groupend) { /* Append to group */ line_t *line = new0(line_t); - groupend->next = line; line->key = strcopy(key); line->value = strcopy(value); line->next = groupend->next; + groupend->next = line; } else if (fileend) { /* Create new group */ line_t *blank = new0(line_t);