diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/readline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c index a7d1350..990270f 100644 --- a/lib/libedit/readline.c +++ b/lib/libedit/readline.c @@ -395,6 +395,9 @@ readline(const char *p) char *buf; static int used_event_hook; + if (line == NULL) + return 0; + if (e == NULL || h == NULL) rl_initialize(); |