aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-15 12:40:01 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-15 12:40:01 -0400
commitf8a187bdbae6e9d3b7407c0c37e3494518496200 (patch)
tree76f974cb84131b43ca13cfde0cbd64800b23ddea /src/backend/commands/dbcommands.c
parent33cedf1474a356fe510d4ad32c040c968ef27307 (diff)
downloadpostgresql-f8a187bdbae6e9d3b7407c0c37e3494518496200.tar.gz
postgresql-f8a187bdbae6e9d3b7407c0c37e3494518496200.zip
Clean up callers of JsonbIteratorNext().
Coverity complained about the lack of a check on the return value in parse_jsonb_index_flags' last call of JsonbIteratorNext. Seems like a reasonable gripe to me, especially since the code is depending on that being WJB_DONE to not leak memory, so add a check. In passing, improve a couple other places where the result was being ignored, either by adding an assert or at least a cast to void. Also, don't spell "WJB_DONE" as "0". That's horrid coding style, and it wasn't consistent either.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions