aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/psql/mainloop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c
index 1d3298187a3..76da5417365 100644
--- a/src/bin/psql/mainloop.c
+++ b/src/bin/psql/mainloop.c
@@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source)
{
const char *end_of_cmd = NULL;
+ paren_level = 0;
line[i - prevlen] = '\0'; /* overwrites backslash */
/* is there anything else on the line? */