Browse Source

fix uci rename for anonymous sections

Felix Fietkau 15 years ago
parent
commit
64ef6b15fe
1 changed files with 3 additions and 0 deletions
  1. 3 0
      list.c

+ 3 - 0
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;
 }