uci: clear ptr.value in rpc_uci_merge_set(), this fixes missing delete deltas if...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Sep 2013 13:11:37 +0000 (13:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Sep 2013 13:11:37 +0000 (13:11 +0000)
uci.c

diff --git a/uci.c b/uci.c
index a133ff27606cab6969db9d00f38b36ec9000f457..060ed2b7d99f22659b0851edca74f56dfe666d1c 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -682,6 +682,7 @@ rpc_uci_merge_set(struct blob_attr *opt, struct uci_ptr *ptr)
 
        ptr->o = NULL;
        ptr->option = blobmsg_name(opt);
+       ptr->value = NULL;
 
        if (rpc_uci_lookup(ptr) || !ptr->s)
                return;