diff options
Diffstat (limited to 'lib/readline/readline.c')
-rw-r--r-- | lib/readline/readline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/readline/readline.c b/lib/readline/readline.c index c2b7400..bd4d263 100644 --- a/lib/readline/readline.c +++ b/lib/readline/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; } |