summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-27 19:52:18 +0100
committerFelix Fietkau <nbd@openwrt.org>2008-12-27 19:52:18 +0100
commit64ef6b15fe3777b6c66e249ba770aec945d1d950 (patch)
tree3b02375fecb369a0b6360cbaed9d5d5489337a08
parent93de031b1b9bb5d2a55a692fbd1a07cd15ebc9b2 (diff)
downloaduci-64ef6b15fe3777b6c66e249ba770aec945d1d950.tar.gz
fix uci rename for anonymous sections
-rw-r--r--list.c3
1 files changed, 3 insertions, 0 deletions
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;
}