w3m

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

commit 9ea714bbf791485089beb7ed1e72a1b8395e299e
parent 360fb60e3a8405ef9ec808dbc71745b603178f8d
Author: ukai <ukai>
Date:   Sat, 11 Jan 2003 16:17:43 +0000

[w3m-dev 03636] segfault in main.c
* main.c (main): check newbuf->currentURL.file
From: qhwt@myrealbox.com

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

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-12 qhwt@myrealbox.com + + * [w3m-dev 03636] segfault in main.c + * main.c (main): check newbuf->currentURL.file + 2003-01-12 Fumitoshi UKAI <ukai@debian.or.jp> * Bonus/README.eng: sync with Bonus/README diff --git a/main.c b/main.c @@ -888,7 +888,8 @@ main(int argc, char **argv, char **envp) } else if (newbuf == NO_BUFFER) continue; - if (newbuf->pagerSource || strcmp(newbuf->currentURL.file, "-")) + if (newbuf->pagerSource || + (newbuf->currentURL.file && strcmp(newbuf->currentURL.file, "-"))) newbuf->search_header = search_header; if (CurrentTab == NULL) { FirstTab = LastTab = CurrentTab = newTab();