From 8f74da799ecba3095bcac945f4f89cfd8bd6d253 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Mon, 29 May 2017 18:54:06 +0200 Subject: [PATCH] mufs: set root after extending a file tree --- source/fs/mufs/tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/fs/mufs/tree.c b/source/fs/mufs/tree.c index 0c1a0bb..f100b05 100644 --- a/source/fs/mufs/tree.c +++ b/source/fs/mufs/tree.c @@ -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;