aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-09-26 22:25:13 +0000
committerdrh <>2024-09-26 22:25:13 +0000
commitc94e4a7b2fb1686ef78a518fc6b3ad13e27eecf5 (patch)
tree89813b415ae67719eb57acb74d12a74e6deff119 /src
parent74194f14ec30dfbeeef37026d19799a77b9b12d3 (diff)
downloadsqlite-c94e4a7b2fb1686ef78a518fc6b3ad13e27eecf5.tar.gz
sqlite-c94e4a7b2fb1686ef78a518fc6b3ad13e27eecf5.zip
Fix a harmless compiler warning in the CLI.
FossilOrigin-Name: 27ef1909bb0c4d9470c6074b40500632c68341127a079a3eb3b6a19dbfb2aeac
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index b8c247cc2..56f63fb19 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -12732,7 +12732,11 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
sqlite3_fprintf(stderr,
"attach debugger to process %d and press ENTER to continue...",
GETPID());
- sqlite3_fgets(zLine, sizeof(zLine), stdin);
+ if( sqlite3_fgets(zLine, sizeof(zLine), stdin)!=0
+ && cli_strcmp(zLine,"stop")==0
+ ){
+ exit(1);
+ }
}else{
#if defined(_WIN32) || defined(WIN32)
#if SQLITE_OS_WINRT