pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix "ignoring return value" complaints from commit 96d1f423f9
Date: Sat, 04 Jul 2020 17:48:36 +0000
Message-ID: <E1jrmHE-0003Qr-N5@gemulon.postgresql.org> (raw)

Fix "ignoring return value" complaints from commit 96d1f423f9

The cfbot and some BF animals are complaining about the previous
read_binary_file commit because of ignoring return value of ‘fread’.
So let's make everyone happy by testing the return value even though
not strictly needed.

Reported by Justin Pryzby, and suggested patch by Tom Lane. Backpatched
to v11 same as the previous commit.

Reported-By: Justin Pryzby
Reviewed-By: Tom Lane
Discussion: https://postgr.es/m/flat/969b8d82-5bb2-5fa8-4eb1-f0e685c5d736%40joeconway.com
Backpatch-through: 11

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1243aa9b2f2e8a23f5fbace2b038b962bf79e9f0

Modified Files
--------------
src/backend/utils/adt/genfile.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)



view thread (4+ messages)

Message-ID: <E1jrmHE-0003Qr-N5@gemulon.postgresql.org>
Permalink:  ../E1jrmHE-0003Qr-N5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jrmHE-0003Qr-N5@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: mail@joeconway.com
  Subject: Re: pgsql: Fix "ignoring return value" complaints from commit 96d1f423f9
  In-Reply-To: <E1jrmHE-0003Qr-N5@gemulon.postgresql.org>
  References: <E1jrmHE-0003Qr-N5@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox