Commit 042162d6 authored by Alexander Korotkov's avatar Alexander Korotkov

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
parent 0176eb21
......@@ -1459,15 +1459,11 @@ executePredicate(JsonPathExecContext *cxt, JsonPathItem *pred,
JsonbValue *rval;
bool first = true;
if (rarg)
{
JsonValueListInitIterator(&rseq, &rseqit);
if (rarg)
rval = JsonValueListNext(&rseq, &rseqit);
}
else
{
rval = NULL;
}
/* Loop over right arg sequence or do single pass otherwise */
while (rarg ? (rval != NULL) : first)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment