summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 00:02:07 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 00:06:07 +0200
commitfd607ef164588afddf93139a1b76bf8bffcce078 (patch)
tree367f2199fb199497787bba04bc4cffbb00375e7e /lib
parentba4811b1d2ac5a9d363e6000c83098f2eb885119 (diff)
Make coverity happy
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/read_tree.c2
1 files changed, 1 insertions, 1 deletions
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 {