mufs: set root after extending a file tree

This commit is contained in:
S.J.R. van Schaik 2017-05-29 18:54:06 +02:00
parent 3b601ea588
commit 8f74da799e

View file

@ -113,6 +113,8 @@ int mufs_extend_tree(struct mufs *fs, struct mufs_tree *tree, uint8_t depth)
mufs_free_block(fs, root);
return -1;
}
tree->root = root;
}
return 0;