diff options
-rw-r--r-- | util/interval-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/interval-tree.c b/util/interval-tree.c index f2866aa..5346518 100644 --- a/util/interval-tree.c +++ b/util/interval-tree.c @@ -797,7 +797,7 @@ IntervalTreeNode *interval_tree_iter_first(IntervalTreeRoot *root, { IntervalTreeNode *node, *leftmost; - if (!root->rb_root.rb_node) { + if (!root || !root->rb_root.rb_node) { return NULL; } |