diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-02-10 12:18:55 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-02-10 12:19:36 +0100 |
commit | 3df53d76b5aeccd29ed7d50d5c798d50fd37ea3e (patch) | |
tree | 8fdb4c0b3f3c506deaabbfb326d04ce72d6a7e95 /lib/sqfs/block_writer.c | |
parent | d803b03ca07b4a4a32770e65a5f17ad66e659cae (diff) |
Always use the correct data type for realloc return value
This commit mainly serves the static analysis tooling.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_writer.c')
-rw-r--r-- | lib/sqfs/block_writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/block_writer.c b/lib/sqfs/block_writer.c index 17d045f..f6dea26 100644 --- a/lib/sqfs/block_writer.c +++ b/lib/sqfs/block_writer.c @@ -52,8 +52,8 @@ typedef struct { static int store_block_location(block_writer_default_t *wr, sqfs_u64 offset, sqfs_u32 size, sqfs_u32 chksum) { + blk_info_t *new; size_t new_sz; - void *new; if (wr->num_blocks == wr->max_blocks) { new_sz = wr->max_blocks * 2; |