[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#74278: info: Segfault if return key pressed in "SEE ALSO" sectio
From: |
Josip Rodin |
Subject: |
Re: Bug#74278: info: Segfault if return key pressed in "SEE ALSO" section |
Date: |
Mon, 9 Oct 2000 18:51:26 +0200 |
User-agent: |
Mutt/1.0.1i |
On Mon, Oct 09, 2000 at 05:29:30PM +0200, Eli Zaretskii wrote:
> > From: "H. Nanosecond" <address@hidden>
> >
> > If the cursor is before the first reference when you press enter
> > then the variable 'which' will be -1 after the loop,
> > causing a memory error when refs[which] is accessed.
> >
> > SEE ALSO
> > X apropos(1), whatis(1), less(1), groff(1).
> > ^ cursor here.
>
> Thabnks for the footwork. Please see if the patch below solves the
> problem.
>
> 2000-10-09 Eli Zaretskii <address@hidden>
>
> * info/session.c (info_menu_or_ref_item): If point is before all
> the cross-references, use the first one as the default, instead of
> setting which to -1 and crashing.
It does, indeed. Thank you both.
--
Digital Electronic Being Intended for Assassination and Nullification