projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
json_script: fix a segfault in the file free handler
[project/libubox.git]
/
blob.h
diff --git
a/blob.h
b/blob.h
index bf96241bbc713863c905dc3d3a453c72d2b532b1..595834dd9a392610982847f4150fb7cf78984155 100644
(file)
--- a/
blob.h
+++ b/
blob.h
@@
-144,7
+144,7
@@
blob_get_u32(const struct blob_attr *attr)
static inline uint64_t
blob_get_u64(const struct blob_attr *attr)
{
- uint32_t *ptr = blob_data(attr);
+ uint32_t *ptr =
(uint32_t *)
blob_data(attr);
uint64_t tmp = ((uint64_t) be32_to_cpu(ptr[0])) << 32;
tmp |= be32_to_cpu(ptr[1]);
return tmp;