From 64ef6b15fe3777b6c66e249ba770aec945d1d950 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 27 Dec 2008 19:52:18 +0100 Subject: [PATCH] fix uci rename for anonymous sections --- list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/list.c b/list.c index b4f4da8..cd6d305 100644 --- a/list.c +++ b/list.c @@ -527,6 +527,9 @@ int uci_rename(struct uci_context *ctx, struct uci_ptr *ptr) free(e->name); e->name = n; + if (e->type == UCI_TYPE_SECTION) + uci_to_section(e)->anonymous = false; + return 0; } -- 2.11.0