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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy