diff options
Diffstat (limited to 'lib/fstree/src/fstree.c')
-rw-r--r-- | lib/fstree/src/fstree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fstree/src/fstree.c b/lib/fstree/src/fstree.c index 19bd997..bf84c17 100644 --- a/lib/fstree/src/fstree.c +++ b/lib/fstree/src/fstree.c @@ -16,9 +16,9 @@ static void free_recursive(tree_node_t *n) tree_node_t *it; if (S_ISDIR(n->mode)) { - while (n->data.dir.children != NULL) { - it = n->data.dir.children; - n->data.dir.children = it->next; + while (n->data.children != NULL) { + it = n->data.children; + n->data.children = it->next; free_recursive(it); } @@ -47,7 +47,7 @@ int fstree_init(fstree_t *fs, const fstree_defaults_t *defaults) return -1; } - fs->root->data.dir.created_implicitly = true; + fs->root->flags |= FLAG_DIR_CREATED_IMPLICITLY; return 0; } |