Initialized `_root` properly

Fix #4204

`_root` is uninitialized for non-root nodes. And it will cause `module_node::mount` fail because it uses `root()`. Once the bug is triggered, signal 11 is received but Magisk catch all signals and therefore stuck forever.
This commit is contained in:
LoveSy 2021-04-13 06:12:02 +08:00 committed by John Wu
parent 94ec11db58
commit 95c964673d
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ protected:
map_type children;
// Root node lookup cache
root_node *_root;
root_node *_root = nullptr;
};
class root_node : public dir_node {