projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93de031
)
fix uci rename for anonymous sections
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 27 Dec 2008 18:52:18 +0000
(19:52 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 27 Dec 2008 18:52:18 +0000
(19:52 +0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index
b4f4da8
..
cd6d305
100644
(file)
--- 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;
}