From 757846c940e184718d903aa2d3c6dc0dc2670aed Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 27 Nov 2001 04:45:28 +0000 Subject: [w3m-dev 02572] _peekURL() bug From: Hironori Sakamoto --- ChangeLog | 5 +++++ main.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ed6ee16..3fd4e21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-27 Hironori Sakamoto + + * [w3m-dev 02572] + * main.c (_peekURL): initialize s when anchor not found + 2001-11-27 aito@fw.ipsj.or.jp * Error correction on doc-jp/FAQ.html diff --git a/main.c b/main.c index fa26c59..c243939 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.23 2001/11/24 02:01:26 ukai Exp $ */ +/* $Id: main.c,v 1.24 2001/11/27 04:45:28 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -3768,8 +3768,10 @@ _peekURL(int only_img) a = retrieveCurrentImg(Currentbuf); if (a == NULL) { a = retrieveCurrentForm(Currentbuf); - if (a == NULL) + if (a == NULL) { + s = NULL; return; + } s = Strnew_charp(form2str((FormItemList *)a->url)); goto disp; } -- cgit v1.2.3