mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -1459,15 +1459,11 @@ executePredicate(JsonPathExecContext *cxt, JsonPathItem *pred,
|
|||||||
JsonbValue *rval;
|
JsonbValue *rval;
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
||||||
|
JsonValueListInitIterator(&rseq, &rseqit);
|
||||||
if (rarg)
|
if (rarg)
|
||||||
{
|
|
||||||
JsonValueListInitIterator(&rseq, &rseqit);
|
|
||||||
rval = JsonValueListNext(&rseq, &rseqit);
|
rval = JsonValueListNext(&rseq, &rseqit);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
rval = NULL;
|
rval = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
/* Loop over right arg sequence or do single pass otherwise */
|
/* Loop over right arg sequence or do single pass otherwise */
|
||||||
while (rarg ? (rval != NULL) : first)
|
while (rarg ? (rval != NULL) : first)
|
||||||
|
Reference in New Issue
Block a user