]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-squat: Ensure child is not NULL
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 16 Aug 2016 11:49:35 +0000 (14:49 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 16 Aug 2016 19:12:11 +0000 (22:12 +0300)
Makes static analysers happy

src/plugins/fts-squat/squat-trie.c

index 1763fdc652bd74e059f91bee230d4a7e76f6183d..433ce1099d386e6b4f038e8e18a821e272c44acb 100644 (file)
@@ -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 */