diff --git a/src/config.c b/src/config.c index c85cedf..bfece35 100644 --- a/src/config.c +++ b/src/config.c @@ -60,7 +60,7 @@ void AppendToConfig(char* section, char* name, char* value) { new->next = old->next; old->next = new; } else { - old->next = new; + if (old!=new) old->next = new; } }