diff --git a/contrib/ltree/ltree_io.c b/contrib/ltree/ltree_io.c index cb9feebe78..f0dd3df511 100644 --- a/contrib/ltree/ltree_io.c +++ b/contrib/ltree/ltree_io.c @@ -496,7 +496,7 @@ parse_lquery(const char *buf, struct Node *escontext) if (state == LQPRS_WAITDELIM) { if (!finish_nodeitem(lptr, ptr, true, pos, escontext)) - return false; + return NULL; } else if (state == LQPRS_WAITOPEN) curqlevel->high = LTREE_MAX_LEVELS;