Skip to content

Commit ec9eb22

Browse files
committed
Fix null pointer dereference in formUpdateBuffer
Bug-Debian: #28
1 parent c92724e commit ec9eb22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form.c

+2
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
459459
}
460460
else
461461
#endif /* MENU_SELECT */
462+
if (!form->value)
463+
break;
462464
p = form->value->ptr;
463465
l = buf->currentLine;
464466
if (!l)

0 commit comments

Comments
 (0)