Prevent null pointer dereference in HTMLlineproc2body

Bug-Debian: https://github.com/tats/w3m/issues/32
This commit is contained in:
Tatsuya Kinoshita
2016-11-07 00:35:42 +09:00
parent 5cf75248f5
commit c6c39973e7
+1 -1
View File
@@ -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;