pgsql: Don't pass NULL to fprintf, if not currently connected to a data

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't pass NULL to fprintf, if not currently connected to a data
Date: 2013-01-15 17:26:52
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't pass NULL to fprintf, if not currently connected to a database.

Backpatch all the way to 8.3. Fixes bug #7811, per report and diagnosis by
Meng Qingzhong.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/20df7e9053799ee80e4e97088c5398dbdd76196f

Modified Files
--------------
src/bin/psql/help.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-01-15 20:24:33 pgsql: Make \? help message more clear when not connected.
Previous Message Alvaro Herrera 2013-01-15 16:26:22 pgsql: Rework order of checks in ALTER / SET SCHEMA