Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2014-11-12 16:59:19 +0300
committerFelix Fietkau <nbd@openwrt.org>2014-12-11 19:58:29 +0300
commit7f1ce63a84a4c0c3cd1c44ec49a758190e5e1e79 (patch)
tree6072bebcf71ba27f5d3d99056275c30bbe79e13a /blobmsg.c
parent8cc3903383d0022701bbdb1ca25799a9a087c265 (diff)
blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer().
data_dest should already be assigned by blobmsg_new() if the return value is not NULL. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'blobmsg.c')
-rw-r--r--blobmsg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/blobmsg.c b/blobmsg.c
index 9fe96e4..80b984a 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -262,7 +262,6 @@ blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, unsigned int
if (!attr)
return NULL;
- data_dest = blobmsg_data(attr);
blob_set_raw_len(buf->head, blob_pad_len(buf->head) - blob_pad_len(attr));
blob_set_raw_len(attr, blob_raw_len(attr) - maxlen);