aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lookup.c b/src/lookup.c
index e92363f..1785457 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -562,6 +562,8 @@ grecs_match_buf_first(struct grecs_match_buf *buf, struct grecs_node *tree)
buf->argi = 0;
buf->root = tree;
buf->node = grecs_tree_first_node(tree);
+ if (!buf->node)
+ return NULL;
if (grecs_match(buf))
node = buf->node;
else

Return to:

Send suggestions and report system problems to the System administrator.