diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-10-23 11:34:42 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-10-23 11:34:42 +0900 |
commit | a6a95d4f382b67bc80b63e4769dfb240bafd9aa7 (patch) | |
tree | 558348d88e30cd3e40a04f73f781f1fea0bd0a20 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 399b8d13ca5cda44ed9c4aff10c85351d8e95cff (diff) | |
download | postgresql-a6a95d4f382b67bc80b63e4769dfb240bafd9aa7.tar.gz postgresql-a6a95d4f382b67bc80b63e4769dfb240bafd9aa7.zip |
Fix thinkos from 4f4061b for libpq integer parsing
A check was redundant. While on it, add an assertion to make sure that
the parsing routine is never called with a NULL input. All the code
paths currently calling the parsing routine are careful with NULL inputs
already, but future callers may forget that.
Reported-by: Peter Eisentraut, Lars Kanis
Discussion: https://postgr.es/m/ec64956b-4597-56b6-c3db-457d15250fe4@2ndquadrant.com
Backpatch-through: 12
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions