diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index 36f7b38cb..8e37bac18 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -994,6 +994,7 @@ static char *one_input_line(FILE *in, char *zPrior, int isContinuation){ fflush(stdout); do{ zResult = local_getline(zPrior, stdin); + zPrior = 0; /* ^C trap creates a false EOF, so let "interrupt" thread catch up. */ if( zResult==0 ) sqlite3_sleep(50); }while( zResult==0 && seenInterrupt>0 ); |