Merge branch 'jc/cache-tree' into next
* jc/cache-tree: Fix crash when reading the empty treemaint
commit
2c4c17fbb9
|
|
@ -881,8 +881,8 @@ int main(int argc, char **argv)
|
||||||
* valid cache-tree because the index must match exactly
|
* valid cache-tree because the index must match exactly
|
||||||
* what came from the tree.
|
* what came from the tree.
|
||||||
*/
|
*/
|
||||||
if (trees->item && (!merge || (stage == 2))) {
|
if (trees && trees->item && (!merge || (stage == 2))) {
|
||||||
cache_tree_free(&active_cache_tree);
|
cache_tree_free(&active_cache_tree);
|
||||||
prime_cache_tree();
|
prime_cache_tree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue