projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc3903
)
blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer().
author
Yousong Zhou
<yszhou4tech@gmail.com>
Wed, 12 Nov 2014 13:59:19 +0000
(21:59 +0800)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 11 Dec 2014 16:58:29 +0000
(17:58 +0100)
data_dest should already be assigned by blobmsg_new() if the return
value is not NULL.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
blobmsg.c
patch
|
blob
|
history
diff --git
a/blobmsg.c
b/blobmsg.c
index 9fe96e44c8509eedd17189e1710f52cacb4271e0..80b984a133cd52f0d3a5fefe33de4e9739d99e71 100644
(file)
--- 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);