From f99022447deb5f6df6b401761897d1174a0f2319 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 12 Feb 2020 00:18:39 +0100 Subject: Fix iteration over directory children in sqfsdiff Signed-off-by: David Oberhollenzer --- difftool/compare_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/difftool/compare_dir.c b/difftool/compare_dir.c index b206480..1a4c800 100644 --- a/difftool/compare_dir.c +++ b/difftool/compare_dir.c @@ -26,7 +26,7 @@ static int print_omitted(sqfsdiff_t *sd, bool is_old, sqfs_tree_node_t *n) free(path); - for (n = n->children; n->children != NULL; n = n->next) { + for (n = n->children; n != NULL; n = n->next) { if (print_omitted(sd, is_old, n)) return -1; } -- cgit v1.2.3