diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-02-08 22:24:18 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-02-08 22:24:18 +0000 |
commit | 6062b7ccd9b89c31308cf7044f42e9f5db5deff8 (patch) | |
tree | 0ca17136831bd07c2f09621580778c46e74d3cf9 /lib/libedit | |
parent | f4c6aea395327227f18046d494115d46b00e90f0 (diff) | |
download | src-test-6062b7ccd9b89c31308cf7044f42e9f5db5deff8.tar.gz src-test-6062b7ccd9b89c31308cf7044f42e9f5db5deff8.zip |
Reapply r255891
Notes
Notes:
svn path=/head/; revision=278414
Diffstat (limited to 'lib/libedit')
-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 a7d13506a2bc9..990270fc90ece 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(); |