aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-10-08 21:01:37 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-10-08 21:01:37 +0000
commit22d29c3d11bdfec80164789a99c36cc674340914 (patch)
treee7161e572723f5eaace1d824ad2595e899d9732e
parentUpdate ChangeLog (diff)
downloadw3m-22d29c3d11bdfec80164789a99c36cc674340914.tar.gz
w3m-22d29c3d11bdfec80164789a99c36cc674340914.zip
Fix incorrect dereference in formUpdateBuffer when MENU_SELECT
cf. https://github.com/tats/w3m/commit/ec9eb22e008a69ea9dc21fdca4b9b836679965ee
-rw-r--r--form.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/form.c b/form.c
index 71c19d0..de7a4d9 100644
--- a/form.c
+++ b/form.c
@@ -461,9 +461,11 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
}
else
#endif /* MENU_SELECT */
+ {
if (!form->value)
break;
p = form->value->ptr;
+ }
l = buf->currentLine;
if (!l)
break;