Skip to content

Commit 042162d

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 Lane Discussion: https://postgr.es/m/25151.1552751426%40sss.pgh.pa.us
1 parent 0176eb2 commit 042162d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/backend/utils/adt/jsonpath_exec.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -1459,15 +1459,11 @@ executePredicate(JsonPathExecContext *cxt, JsonPathItem *pred,
14591459
JsonbValue *rval;
14601460
bool first = 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)