summaryrefslogtreecommitdiff
path: root/shell/dbshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shell/dbshell.cpp')
-rw-r--r--shell/dbshell.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index f6208518d52..1f09709c278 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -301,7 +301,7 @@ int _main(int argc, char* argv[]) {
if ( line )
while ( line[0] == ' ' )
line++;
-
+
if ( ! line || ( strlen(line) == 4 && strstr( line , "exit" ) ) ){
cout << "bye" << endl;
break;
@@ -311,6 +311,8 @@ int _main(int argc, char* argv[]) {
if ( code == "exit" ){
break;
}
+ if ( code.size() == 0 )
+ continue;
bool wascmd = false;
{