Don't pass NULL to fprintf, if not currently connected to a database.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/help.c | modified | +6 −1 |