summaryrefslogtreecommitdiff
path: root/lib/sqfs/frag_table.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-10 12:18:55 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-10 12:19:36 +0100
commit3df53d76b5aeccd29ed7d50d5c798d50fd37ea3e (patch)
tree8fdb4c0b3f3c506deaabbfb326d04ce72d6a7e95 /lib/sqfs/frag_table.c
parentd803b03ca07b4a4a32770e65a5f17ad66e659cae (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/frag_table.c')
-rw-r--r--lib/sqfs/frag_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/frag_table.c b/lib/sqfs/frag_table.c
index f0b01da..5d919b8 100644
--- a/lib/sqfs/frag_table.c
+++ b/lib/sqfs/frag_table.c
@@ -169,8 +169,8 @@ int sqfs_frag_table_lookup(sqfs_frag_table_t *tbl, sqfs_u32 index,
int sqfs_frag_table_append(sqfs_frag_table_t *tbl, sqfs_u64 location,
sqfs_u32 size, sqfs_u32 *index)
{
+ sqfs_fragment_t *new;
size_t new_sz, total;
- void *new;
if (tbl->used == tbl->capacity) {
new_sz = tbl->capacity ? tbl->capacity * 2 : 128;