diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2025-04-10 19:05:54 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2025-04-10 19:08:04 -0400 |
commit | 39729ec01d25dbe12e0dd8322c68f242650235c9 (patch) | |
tree | a40302a7fbd3423b9cb46ce7914ef147b2f9454c | |
parent | 928394b664bc4afef2fe6dc69a70e4074886e065 (diff) | |
download | postgresql-39729ec01d25dbe12e0dd8322c68f242650235c9.tar.gz postgresql-39729ec01d25dbe12e0dd8322c68f242650235c9.zip |
Fix fat fingering in 22cb6d28950
Per Rainier Vilela
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index 8748225976a..24a44b81a95 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -902,12 +902,12 @@ read_one_statement(StringInfo inBuf, FILE *pfile) break; } - destroyStringInfo(&q); - if (c == '\n') appendStringInfoChar(inBuf, (char) '\n'); } + destroyStringInfo(&q); + /* No input before EOF signal means time to quit. */ if (c == EOF && inBuf->len == 0) return EOF; |