From fd607ef164588afddf93139a1b76bf8bffcce078 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 28 Sep 2019 00:02:07 +0200 Subject: Make coverity happy Signed-off-by: David Oberhollenzer --- lib/sqfs/read_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqfs') diff --git a/lib/sqfs/read_tree.c b/lib/sqfs/read_tree.c index 4672a4e..b5ec3fc 100644 --- a/lib/sqfs/read_tree.c +++ b/lib/sqfs/read_tree.c @@ -137,7 +137,7 @@ static int fill_dir(sqfs_dir_reader_t *dr, sqfs_tree_node_t *root, (flags & SQFS_TREE_NO_EMPTY)) { free(n->inode); if (prev == NULL) { - root->children = n->next; + root->children = root->children->next; free(n); n = root->children; } else { -- cgit v1.2.3