Fix incorrect dereference in formUpdateBuffer when MENU_SELECT

cf. ec9eb22e00
This commit is contained in:
Tatsuya Kinoshita
2016-10-09 06:01:37 +09:00
parent a42f6c452c
commit 22d29c3d11

2
form.c
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;