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:
-rw-r--r--blobmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg.c b/blobmsg.c
index 47ee9e7..b3e485d 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -203,7 +203,7 @@ attr_to_offset(struct blob_buf *buf, struct blob_attr *attr)
void *
blobmsg_open_nested(struct blob_buf *buf, const char *name, bool array)
{
- struct blob_attr *head = buf->head;
+ struct blob_attr *head;
int type = array ? BLOBMSG_TYPE_ARRAY : BLOBMSG_TYPE_TABLE;
unsigned long offset = attr_to_offset(buf, buf->head);
void *data;