bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in rl_prep_terminal() without rl_outstream


From: Nick Black
Subject: Re: crash in rl_prep_terminal() without rl_outstream
Date: Mon, 16 Nov 2020 03:39:22 -0500

there was a terrible error in this patch, how embarrassing.
corrected version below/attached. sorry about that.

 --- rltty.c    2018-09-19 11:19:26.000000000 -0400
 +++ rltty.c.new        2020-11-16 03:16:51.311626266 -0500
 @@ -606,6 +606,10 @@
    _rl_block_sigint ();
  
    tty = rl_instream ? fileno (rl_instream) : fileno (stdin);
 +  if (!rl_outstream)
 +    {
 +      rl_outstream = stdout;
 +    }
  
    if (get_tty_settings (tty, &tio) < 0)
      {
 

-- 
nick black -=- https://www.nick-black.com
to make an apple pie from scratch,
you need first invent a universe.

Attachment: readline8.rltty.diff
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]