From c6c39973e7d336854e9a2d43119d1220b36e2035 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Mon, 7 Nov 2016 00:35:42 +0900 Subject: Prevent null pointer dereference in HTMLlineproc2body Bug-Debian: https://github.com/tats/w3m/issues/32 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index b66f8c8..3315e4f 100644 --- a/file.c +++ b/file.c @@ -6056,7 +6056,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) n_select = -1; break; case HTML_N_SELECT_INT: - if (n_select >= 0) { + if (a_select && n_select >= 0) { FormItemList *item = (FormItemList *)a_select[n_select]->url; item->select_option = select_option[n_select].first; -- cgit v1.2.3