diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 04:45:28 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 04:45:28 +0000 |
commit | 757846c940e184718d903aa2d3c6dc0dc2670aed (patch) | |
tree | da6342b869ac3f53c215f915cb58f448e89731e7 /main.c | |
parent | 2001-11-27 aito@fw.ipsj.or.jp (diff) | |
download | w3m-757846c940e184718d903aa2d3c6dc0dc2670aed.tar.gz w3m-757846c940e184718d903aa2d3c6dc0dc2670aed.zip |
[w3m-dev 02572] _peekURL() bug
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 <signal.h> @@ -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; } |