aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-02-02 19:49:15 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-02-02 19:49:15 -0500
commit8ac0365c22f20dcd2a6b6752b95b665ada83e858 (patch)
tree292e6c5de96c649f3da2fc23669e5932e354088f /src/backend/executor/nodeModifyTable.c
parent555494d1bc119173bbf712940da823303644d4de (diff)
downloadpostgresql-8ac0365c22f20dcd2a6b6752b95b665ada83e858.tar.gz
postgresql-8ac0365c22f20dcd2a6b6752b95b665ada83e858.zip
Avoid improbable null pointer dereference in pgpassfileWarning().
Coverity complained that we might pass a null pointer to strcmp() if PQresultErrorField were to return NULL. That shouldn't be possible, since the server is supposed to always provide some SQLSTATE or other in an error message. But we usually defend against such hazards, and it only takes a little more code to do so here. There's no good reason to think this is a live bug, so no back-patch.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions