diff --git a/src/config.c b/src/config.c index 1267cd91c..419bcc324 100644 --- a/src/config.c +++ b/src/config.c @@ -103,6 +103,8 @@ typedef struct { } \ \ (next)->next = (old)->next; \ + if ((next) == (head)) \ + (head)->next = (old)->next; \ }