diff --git a/src/backend/utils/adt/agtype_ops.c b/src/backend/utils/adt/agtype_ops.c index d831447b0..8b6efd1dc 100644 --- a/src/backend/utils/adt/agtype_ops.c +++ b/src/backend/utils/adt/agtype_ops.c @@ -2098,7 +2098,7 @@ static Datum get_agtype_path_all(FunctionCallInfo fcinfo, bool as_text) char* str = NULL; lindex = strtol(cur_key->val.string.val, &str, 10); - if (strcmp(str, "")) + if (strcmp(str, "") != 0) { PG_RETURN_NULL(); }