From: Felix Fietkau Date: Sat, 27 Dec 2008 18:52:18 +0000 (+0100) Subject: fix uci rename for anonymous sections X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=64ef6b15fe3777b6c66e249ba770aec945d1d950 fix uci rename for anonymous sections --- 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; }