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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 63b0b397c7781b429eda1f4e294dce4cdf12cac7
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-01-15T17:20:42Z
Releases: 8.3.23
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.

Files

PathChange+/−
src/bin/psql/help.c modified +6 −1