From 22d29c3d11bdfec80164789a99c36cc674340914 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 9 Oct 2016 06:01:37 +0900 Subject: Fix incorrect dereference in formUpdateBuffer when MENU_SELECT cf. https://github.com/tats/w3m/commit/ec9eb22e008a69ea9dc21fdca4b9b836679965ee --- form.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'form.c') 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; -- cgit v1.2.3