From: Jo-Philipp Wich <jow@openwrt.org>
Date: Sun, 29 Sep 2013 13:11:37 +0000 (+0000)
Subject: uci: clear ptr.value in rpc_uci_merge_set(), this fixes missing delete deltas if... 
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=095b1058c8cb1147d11028974be4067009bcfd67;p=oweals%2Frpcd.git

uci: clear ptr.value in rpc_uci_merge_set(), this fixes missing delete deltas if multiple options are merged
---

diff --git a/uci.c b/uci.c
index a133ff2..060ed2b 100644
--- 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;