Commit 9c00b7dc authored by vvaltman's avatar vvaltman

not cause error on empty string in input

parent 206c17e5
...@@ -2621,6 +2621,11 @@ void interpreter_ex (char *line, void *ex) { ...@@ -2621,6 +2621,11 @@ void interpreter_ex (char *line, void *ex) {
in_readline = 0; in_readline = 0;
return; return;
} }
if (!*line) {
in_readline = 0;
return;
}
if (line && *line) { if (line && *line) {
add_history (line); add_history (line);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment