X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=list.c;h=cd6d30522941f4d0411293d3a1e3c2f127dd57e7;hb=64ef6b15fe3777b6c66e249ba770aec945d1d950;hp=b4f4da8faf0b6194e490be9f8bb4b2e74171dcd7;hpb=93de031b1b9bb5d2a55a692fbd1a07cd15ebc9b2;p=uci.git 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; }