diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-11 16:17:43 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-11 16:17:43 +0000 |
commit | 3310092fb495081e5d4c7f7fa423d59c5b18cde3 (patch) | |
tree | da4e682b5968dd155583ffcd49dd6aaaaf3c56d4 /main.c | |
parent | Bonus/README.eng: sync with Bonus/README (diff) | |
download | w3m-3310092fb495081e5d4c7f7fa423d59c5b18cde3.tar.gz w3m-3310092fb495081e5d4c7f7fa423d59c5b18cde3.zip |
[w3m-dev 03636] segfault in main.c
* main.c (main): check newbuf->currentURL.file
From: qhwt@myrealbox.com
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.190 2003/01/11 15:54:09 ukai Exp $ */ +/* $Id: main.c,v 1.191 2003/01/11 16:17:43 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -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(); |