X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=uci.c;h=72ae5a67f99ae8f00784be8e2aa94eff5d3116e4;hb=e64cbdd9b405a3246abfe23d8f16bd32647b2d04;hp=421a4c726310e8c616d7233d35426b28cda6fb7b;hpb=f00890cd6eb47ad9bb5da0fb6c50aedc8406e7c5;p=project%2Frpcd.git diff --git a/uci.c b/uci.c index 421a4c7..72ae5a6 100644 --- 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: