Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit042162d

Browse files
committed
Fix compiler warning in jsonpath_exec.c
Warning was observed in gcc 4.4.6, gcc 4.4.7 and probably others.Reported-by: Tom LaneDiscussion:https://postgr.es/m/25151.1552751426%40sss.pgh.pa.us
1 parent0176eb2 commit042162d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/backend/utils/adt/jsonpath_exec.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,15 +1459,11 @@ executePredicate(JsonPathExecContext *cxt, JsonPathItem *pred,
14591459
JsonbValue*rval;
14601460
boolfirst= true;
14611461

1462+
JsonValueListInitIterator(&rseq,&rseqit);
14621463
if (rarg)
1463-
{
1464-
JsonValueListInitIterator(&rseq,&rseqit);
14651464
rval=JsonValueListNext(&rseq,&rseqit);
1466-
}
14671465
else
1468-
{
14691466
rval=NULL;
1470-
}
14711467

14721468
/* Loop over right arg sequence or do single pass otherwise */
14731469
while (rarg ? (rval!=NULL) :first)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp