aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2025-04-10 19:05:54 -0400
committerAndrew Dunstan <andrew@dunslane.net>2025-04-10 19:08:04 -0400
commit39729ec01d25dbe12e0dd8322c68f242650235c9 (patch)
treea40302a7fbd3423b9cb46ce7914ef147b2f9454c
parent928394b664bc4afef2fe6dc69a70e4074886e065 (diff)
downloadpostgresql-39729ec01d25dbe12e0dd8322c68f242650235c9.tar.gz
postgresql-39729ec01d25dbe12e0dd8322c68f242650235c9.zip
Fix fat fingering in 22cb6d28950
Per Rainier Vilela
-rw-r--r--src/bin/pg_dump/pg_restore.c4
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;