uci: reset uci_ptr flags when merging set operations
[project/rpcd.git] / uci.c
diff --git a/uci.c b/uci.c
index 1587a197a2bd6eb07345c7d21803b15143fa58e2..0de6f3e23f8d3ba2fbfa1a653a9129ce26fb7dd0 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -817,6 +817,7 @@ rpc_uci_merge_set(struct blob_attr *opt, struct uci_ptr *ptr)
        struct blob_attr *cur;
        int rem, rv;
 
+       ptr->flags = 0;
        ptr->o = NULL;
        ptr->option = blobmsg_name(opt);
        ptr->value = NULL;