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

This commit is contained in:
Jo-Philipp Wich 2013-09-29 13:11:37 +00:00
parent a23010d407
commit 095b1058c8

1
uci.c
View file

@ -682,6 +682,7 @@ rpc_uci_merge_set(struct blob_attr *opt, struct uci_ptr *ptr)
ptr->o = NULL; ptr->o = NULL;
ptr->option = blobmsg_name(opt); ptr->option = blobmsg_name(opt);
ptr->value = NULL;
if (rpc_uci_lookup(ptr) || !ptr->s) if (rpc_uci_lookup(ptr) || !ptr->s)
return; return;