diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-01-13 02:35:32 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-01-13 02:35:32 +0000 |
commit | febfe447a77c101fec49f93ef22ef37e94939d4d (patch) | |
tree | 540c29ebed56f80afc20f13ebf24de443e1b441a /src/bin/psql/psql.c | |
parent | cac34636490bd1799b93af65c3257b2b5b32e931 (diff) | |
download | postgresql-febfe447a77c101fec49f93ef22ef37e94939d4d.tar.gz postgresql-febfe447a77c101fec49f93ef22ef37e94939d4d.zip |
Oops, introduced a bug in EOF handling. Fix it.
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r-- | src/bin/psql/psql.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 7b6e50fc11d..2e730724501 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.48 1997/01/13 02:03:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.49 1997/01/13 02:35:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1285,8 +1285,9 @@ MainLoop(PsqlSettings * settings, FILE * source) query_start = line; - if (line == NULL && !settings->quiet) { /* No more input. Time to quit */ - printf("EOF\n"); /* Goes on prompt line */ + if (line == NULL) { /* No more input. Time to quit */ + if (!settings->quiet) + printf("EOF\n"); /* Goes on prompt line */ eof = true; } else { /* remove whitespaces on the right, incl. \n's */ |