Fix a couple of places where the result of fgets() wasn't checked.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 09543580471182ecab3b73c982485397edabbce2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-04-30T17:09:13Z
Releases: 9.0.0
Fix a couple of places where the result of fgets() wasn't checked.
This is mostly to suppress compiler warnings, although in principle
the cases could result in undesirable behavior.

Martin Pitt

Files

PathChange+/−
src/bin/psql/prompt.c modified +3 −2
src/interfaces/libpq/fe-connect.c modified +3 −2