Skip to content

Commit 867b8c8

Browse files
author
Nikita Glukhov
committed
Fix const-ness warnings
1 parent 1eb5b4f commit 867b8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonpath_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ executeLikeRegex(JsonPathItem *jsp, JsonbValue *str, JsonbValue *rarg,
17951795
cxt->cflags = jspConvertRegexFlags(jsp->content.like_regex.flags);
17961796
}
17971797

1798-
if (RE_compile_and_execute(cxt->regex, str->val.string.val,
1798+
if (RE_compile_and_execute(cxt->regex, unconstify(char *, str->val.string.val),
17991799
str->val.string.len,
18001800
cxt->cflags, DEFAULT_COLLATION_OID, 0, NULL))
18011801
return jpbTrue;

0 commit comments

Comments
 (0)