not cause error on empty string in input

This commit is contained in:
vvaltman 2015-05-27 16:49:52 +03:00
parent 206c17e5bd
commit 9c00b7dc75

View File

@ -2621,6 +2621,11 @@ void interpreter_ex (char *line, void *ex) {
in_readline = 0;
return;
}
if (!*line) {
in_readline = 0;
return;
}
if (line && *line) {
add_history (line);
}