w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit bfb6ebcbb01106f8fe60ad93121e64dcb724677d
parent 095bc1c120d9683656e676d8c683d2b1994f618e
Author: ukai <ukai>
Date:   Wed, 17 Jul 2002 16:07:37 +0000

[w3m-dev 03263] fix lastA segfault
* main.c (lastA): fix lastA segfault when no anchor found
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mmain.c | 4+++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-07-18 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03263] fix lastA segfault + * main.c (lastA): fix lastA segfault when no anchor found + 2002-07-18 Fumitoshi UKAI <ukai@debian.or.jp> * version.c.in: cvs version diff --git a/main.c b/main.c @@ -3307,7 +3307,7 @@ lastA(void) HmarkerList *hl = Currentbuf->hmarklist; BufferPoint *po; Anchor *an; - int hseq = hl->nmark - 1; + int hseq; if (Currentbuf->firstLine == NULL) return; @@ -3318,6 +3318,8 @@ lastA(void) hseq = 0; else if (prec_num > 0) hseq = hl->nmark - prec_num; + else + hseq = hl->nmark - 1; do { if (hseq < 0) return;