diff options
Diffstat (limited to 'lib/fstree/src/get_by_path.c')
-rw-r--r-- | lib/fstree/src/get_by_path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fstree/src/get_by_path.c b/lib/fstree/src/get_by_path.c index f5e7374..133f412 100644 --- a/lib/fstree/src/get_by_path.c +++ b/lib/fstree/src/get_by_path.c @@ -14,7 +14,7 @@ static tree_node_t *child_by_name(tree_node_t *root, const char *name, size_t len) { - tree_node_t *n = root->data.dir.children; + tree_node_t *n = root->data.children; while (n != NULL) { if (strncmp(n->name, name, len) == 0 && n->name[len] == '\0') @@ -73,7 +73,7 @@ tree_node_t *fstree_get_node_by_path(fstree_t *fs, tree_node_t *root, if (n == NULL) return NULL; - n->data.dir.created_implicitly = true; + n->flags |= FLAG_DIR_CREATED_IMPLICITLY; } root = n; |