diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 1d3298187a..76da541736 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? */