pgsql: Add error handling for failing fstat() calls in copy.c.

Started by Andres Freundover 11 years ago1 messagescomitters
Jump to latest
#1Andres Freund
andres@anarazel.de

Add error handling for failing fstat() calls in copy.c.

These calls are pretty much guaranteed not to fail unless something
has gone horribly wrong, and even in that case we'd just error out a
short time later. But since several code checkers complain about the
missing check it seems worthwile to fix it nonetheless.

Pointed out by Coverity.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2ea95959afa225118374ab1691a5ccf84ae05ce8

Modified Files
--------------
src/backend/commands/copy.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers