projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
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
9fe96e4
..
80b984a
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);