summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Dalos-cli.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Dalos-cli.cc b/src/Dalos-cli.cc
index ab15256..fedec88 100644
--- a/src/Dalos-cli.cc
+++ b/src/Dalos-cli.cc
@@ -105,12 +105,12 @@ void MainTask::Do() {
break;
}
- if (*line_read)
- add_history(line_read);
+ if (!*line_read)
+ continue;
- String line = line_read;
+ add_history(line_read);
- LuaExecString luaExecString(line);
+ LuaExecString luaExecString(line_read);
luaExecString.exec(luaMainTask);
}
}