Fix null pointer dereference in formUpdateBuffer

Bug-Debian: https://github.com/tats/w3m/issues/28
This commit is contained in:
Tatsuya Kinoshita
2016-10-08 06:39:47 +09:00
parent c92724e842
commit ec9eb22e00

2
form.c
View File

@@ -459,6 +459,8 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
}
else
#endif /* MENU_SELECT */
if (!form->value)
break;
p = form->value->ptr;
l = buf->currentLine;
if (!l)