summaryrefslogtreecommitdiff
path: root/lib/sqfs/read_inode.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/read_inode.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/read_inode.c')
-rw-r--r--lib/sqfs/read_inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqfs/read_inode.c b/lib/sqfs/read_inode.c
index 6ca61d5..4f9fd3c 100644
--- a/lib/sqfs/read_inode.c
+++ b/lib/sqfs/read_inode.c
@@ -227,10 +227,9 @@ static int read_inode_dir_ext(sqfs_meta_reader_t *ir, sqfs_inode_t *base,
sqfs_inode_generic_t **result)
{
size_t i, new_sz, index_max, index_used;
- sqfs_inode_generic_t *out;
+ sqfs_inode_generic_t *out, *new;
sqfs_inode_dir_ext_t dir;
sqfs_dir_index_t ent;
- void *new;
int err;
err = sqfs_meta_reader_read(ir, &dir, sizeof(dir));