uci: allow setting zero-length values (to delete an option)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
fb6e4604fb
commit
e64cbdd9b4
1 changed files with 1 additions and 2 deletions
1
uci.c
1
uci.c
|
@ -272,7 +272,6 @@ rpc_uci_format_blob(struct blob_attr *v, const char **p)
|
|||
switch (blobmsg_type(v))
|
||||
{
|
||||
case BLOBMSG_TYPE_STRING:
|
||||
if (blobmsg_data_len(v) > 1)
|
||||
*p = blobmsg_data(v);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue