aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
commit3caf0790a80c2e10c82a3a07719cddb2065c65d1 (patch)
tree2c6f4d1ca5d1c643faea64e1f4c90105a1ab406a /lib/libedit
parentaab5fee0721846740415f201b41c920033a49303 (diff)
parent006a42a9cb173cefe32d169c46748d6f00c41315 (diff)
downloadsrc-3caf0790a80c2e10c82a3a07719cddb2065c65d1.tar.gz
src-3caf0790a80c2e10c82a3a07719cddb2065c65d1.zip
Merge head@256284
Notes
Notes: svn path=/projects/bmake/; revision=256424
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/readline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c
index 35054fa7273c..20a0f05663b3 100644
--- a/lib/libedit/readline.c
+++ b/lib/libedit/readline.c
@@ -1363,6 +1363,9 @@ add_history(const char *line)
TYPE(HistEvent) ev;
const Char *wline;
+ if (line == NULL)
+ return 0;
+
if (h == NULL || e == NULL)
rl_initialize();