projects
/
oweals
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb6e460
)
uci: allow setting zero-length values (to delete an option)
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 23 Nov 2015 18:11:44 +0000
(19:11 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 23 Nov 2015 18:11:44 +0000
(19:11 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
uci.c
patch
|
blob
|
history
diff --git
a/uci.c
b/uci.c
index 421a4c726310e8c616d7233d35426b28cda6fb7b..72ae5a67f99ae8f00784be8e2aa94eff5d3116e4 100644
(file)
--- a/
uci.c
+++ b/
uci.c
@@
-272,8
+272,7
@@
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);
+ *p = blobmsg_data(v);
break;
case BLOBMSG_TYPE_INT64: