From 9c00b7dc75806324589b9de38dc234f73d501390 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Wed, 27 May 2015 16:49:52 +0300 Subject: [PATCH] not cause error on empty string in input --- interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface.c b/interface.c index 303426d..deca2d9 100644 --- a/interface.c +++ b/interface.c @@ -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); }