diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-11-17 05:23:11 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-11-17 05:23:11 +0000 |
commit | 0f62b3024e8ad200ced653e15b9dd2fc2fbb8bb7 (patch) | |
tree | baa5b8fbd0ada2f5238f0536bbe6a1e9e2f3b532 | |
parent | 9bcf350cc71d427bea84ffaca3d4f69015dcc0c8 (diff) | |
download | postgresql-0f62b3024e8ad200ced653e15b9dd2fc2fbb8bb7.tar.gz postgresql-0f62b3024e8ad200ced653e15b9dd2fc2fbb8bb7.zip |
Fix for \e on empty file.
-rw-r--r-- | src/bin/psql/psql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 45f269be8ca..9deeb490c9a 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.108 1997/11/16 05:32:16 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.109 1997/11/17 05:23:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2099,7 +2099,7 @@ MainLoop(PsqlSettings *pset, char *query, FILE *source) * for next command */ - if (line == NULL) + if (line == NULL || *line == '\0') { /* No more input. Time to quit, or \i done */ if (!pset->quiet) printf("EOF\n");/* Goes on prompt line */ |