aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/readline.c')
-rw-r--r--contrib/libreadline/readline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/libreadline/readline.c b/contrib/libreadline/readline.c
index c2b74006b050..bd4d26376189 100644
--- a/contrib/libreadline/readline.c
+++ b/contrib/libreadline/readline.c
@@ -645,6 +645,11 @@ _rl_dispatch_callback (cxt)
if ((cxt->flags & KSEQ_DISPATCHED) == 0)
{
nkey = _rl_subseq_getchar (cxt->okey);
+ if (nkey < 0)
+ {
+ _rl_abort_internal ();
+ return -1;
+ }
r = _rl_dispatch_subseq (nkey, cxt->dmap, cxt->subseq_arg);
cxt->flags |= KSEQ_DISPATCHED;
}