Fix incorrect dereference in formUpdateBuffer when MENU_SELECT

cf. https://github.com/tats/w3m/commit/ec9eb22e008a69ea9dc21fdca4b9b836679965ee
This commit is contained in:
Tatsuya Kinoshita
2016-10-09 06:01:37 +09:00
parent a42f6c452c
commit 22d29c3d11
+2
View File
@@ -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;