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/id_table.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/id_table.c')
-rw-r--r-- | lib/sqfs/id_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/id_table.c b/lib/sqfs/id_table.c index e3d386e..12f2f20 100644 --- a/lib/sqfs/id_table.c +++ b/lib/sqfs/id_table.c @@ -75,8 +75,8 @@ sqfs_id_table_t *sqfs_id_table_create(sqfs_u32 flags) int sqfs_id_table_id_to_index(sqfs_id_table_t *tbl, sqfs_u32 id, sqfs_u16 *out) { + sqfs_u32 *ptr; size_t i, sz; - void *ptr; for (i = 0; i < tbl->num_ids; ++i) { if (tbl->ids[i] == id) { |