diff options
author | Andrew Dunstan | 2025-04-10 23:05:54 +0000 |
---|---|---|
committer | Andrew Dunstan | 2025-04-10 23:08:04 +0000 |
commit | 39729ec01d25dbe12e0dd8322c68f242650235c9 (patch) | |
tree | a40302a7fbd3423b9cb46ce7914ef147b2f9454c /src | |
parent | 928394b664bc4afef2fe6dc69a70e4074886e065 (diff) |
Fix fat fingering in 22cb6d28950
Per Rainier Vilela
Diffstat (limited to 'src')
-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; |