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:
Diffstat (limited to 'blobmsg.h')
-rw-r--r--blobmsg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg.h b/blobmsg.h
index 1f0634d..5feaffe 100644
--- a/blobmsg.h
+++ b/blobmsg.h
@@ -62,7 +62,7 @@ static inline void blobmsg_clear_name(struct blob_attr *attr)
static inline const char *blobmsg_name(const struct blob_attr *attr)
{
struct blobmsg_hdr *hdr = (struct blobmsg_hdr *) blob_data(attr);
- return (const char *) hdr->name;
+ return (const char *)(hdr + 1);
}
static inline int blobmsg_type(const struct blob_attr *attr)