From 4fc97c527e3f565ef40d814c16ef5a9058712bc0 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 16 Jun 2013 08:49:46 +0000 Subject: [PATCH] Fix bug when adding new config groups --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.2