From 3df53d76b5aeccd29ed7d50d5c798d50fd37ea3e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 10 Feb 2021 12:18:55 +0100 Subject: Always use the correct data type for realloc return value This commit mainly serves the static analysis tooling. Signed-off-by: David Oberhollenzer --- bin/rdsquashfs/fill_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/rdsquashfs/fill_files.c') diff --git a/bin/rdsquashfs/fill_files.c b/bin/rdsquashfs/fill_files.c index 63ad640..1afe6b8 100644 --- a/bin/rdsquashfs/fill_files.c +++ b/bin/rdsquashfs/fill_files.c @@ -64,9 +64,9 @@ order_by_start: static int add_file(const sqfs_tree_node_t *node) { + struct file_ent *new; size_t new_sz; char *path; - void *new; if (num_files == max_files) { new_sz = max_files ? max_files * 2 : 256; -- cgit v1.2.3