X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffrm_driver.c;h=b07ca7cdd5899f46a7185efeb356578bb579568d;hp=3e1ccd64e9cd6cffcd196eb0babbd61b4a1d826b;hb=ed8a29294ebe0c24db40d32e9a4e0268afb6529d;hpb=b93d96b78ac5250135975df892cee793dc3c0797 diff --git a/form/frm_driver.c b/form/frm_driver.c index 3e1ccd64..b07ca7cd 100644 --- a/form/frm_driver.c +++ b/form/frm_driver.c @@ -32,7 +32,7 @@ #include "form.priv.h" -MODULE_ID("$Id: frm_driver.c,v 1.125 2018/04/14 21:18:03 Leon.Winter Exp $") +MODULE_ID("$Id: frm_driver.c,v 1.126 2018/04/28 19:03:36 Leon.Winter Exp $") /*---------------------------------------------------------------------------- This is the core module of the form library. It contains the majority @@ -4367,7 +4367,7 @@ form_driver(FORM *form, int c) if (!form) RETURN(E_BAD_ARGUMENT); - if (!(form->field)) + if (!(form->field) || !(form->current)) RETURN(E_NOT_CONNECTED); assert(form->page);