uci: reset uci_ptr flags when merging options during section add
Fixes: FS#3126 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
3df62bcebd
commit
078bb57e07
1 changed files with 1 additions and 0 deletions
1
uci.c
1
uci.c
|
@ -734,6 +734,7 @@ rpc_uci_add(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
{
|
||||
blobmsg_for_each_attr(cur, tb[RPC_A_VALUES], rem)
|
||||
{
|
||||
ptr.flags = 0;
|
||||
ptr.o = NULL;
|
||||
ptr.option = blobmsg_name(cur);
|
||||
|
||||
|
|
Loading…
Reference in a new issue