Fix fat fingering in 22cb6d2895

Per Rainier Vilela
pull/210/head
Andrew Dunstan 8 months ago
parent 928394b664
commit 39729ec01d
  1. 4
      src/bin/pg_dump/pg_restore.c

@ -902,12 +902,12 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
break; break;
} }
destroyStringInfo(&q);
if (c == '\n') if (c == '\n')
appendStringInfoChar(inBuf, (char) '\n'); appendStringInfoChar(inBuf, (char) '\n');
} }
destroyStringInfo(&q);
/* No input before EOF signal means time to quit. */ /* No input before EOF signal means time to quit. */
if (c == EOF && inBuf->len == 0) if (c == EOF && inBuf->len == 0)
return EOF; return EOF;

Loading…
Cancel
Save