diff options
Diffstat (limited to 'lib/lz4_wrapper.c')
-rw-r--r-- | lib/lz4_wrapper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lz4_wrapper.c b/lib/lz4_wrapper.c index 0739663fca..6dc8b764b3 100644 --- a/lib/lz4_wrapper.c +++ b/lib/lz4_wrapper.c @@ -94,7 +94,9 @@ int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn) } while (1) { - struct lz4_block_header b = { .raw = le32_to_cpu(*(u32 *)in) }; + struct lz4_block_header b; + + b.raw = le32_to_cpu(*(u32 *)in); in += sizeof(struct lz4_block_header); if (in - src + b.size > srcn) { |