diff --git a/src/io/tree.cpp b/src/io/tree.cpp index 50c1434019d4..67e02af20cd8 100644 --- a/src/io/tree.cpp +++ b/src/io/tree.cpp @@ -698,6 +698,8 @@ Tree::Tree(const char* str, size_t* used_len) { int is_linear_int; Common::Atoi(key_vals["is_linear"].c_str(), &is_linear_int); is_linear_ = static_cast(is_linear_int); + } else { + is_linear_ = false; } if ((num_leaves_ <= 1) && !is_linear_) {