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:
Jo-Philipp Wich 2020-05-26 15:49:18 +02:00
parent 3df62bcebd
commit 078bb57e07

1
uci.c
View file

@ -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) blobmsg_for_each_attr(cur, tb[RPC_A_VALUES], rem)
{ {
ptr.flags = 0;
ptr.o = NULL; ptr.o = NULL;
ptr.option = blobmsg_name(cur); ptr.option = blobmsg_name(cur);