Skip to content

Commit

Permalink
fts-squat: Ensure child is not NULL
Browse files Browse the repository at this point in the history
Makes static analysers happy
  • Loading branch information
cmouse authored and sirainen committed Aug 17, 2016
1 parent bd86b25 commit e8671af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/fts-squat/squat-trie.c
Expand Up @@ -482,6 +482,9 @@ node_read_children(struct squat_trie *trie, struct squat_node *node, int level)
level);
children = NODE_CHILDREN_NODES(node);
}

i_assert(children != NULL);

child = &children[child_idx];

/* 1) child offset */
Expand Down

0 comments on commit e8671af

Please sign in to comment.