X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffld_newftyp.c;h=68b1692a2ab83b578962853aa3102a9f1da54325;hp=12487c90372232fda721064615e16b14f9ea6c68;hb=0eb88fc5281804773e2a0c7a488a4452463535ce;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/form/fld_newftyp.c b/form/fld_newftyp.c index 12487c90..68b1692a 100644 --- a/form/fld_newftyp.c +++ b/form/fld_newftyp.c @@ -27,12 +27,12 @@ ****************************************************************************/ /**************************************************************************** - * Author: Juergen Pfeifer 1995,1997 * + * Author: Juergen Pfeifer 1995,1997 * ****************************************************************************/ #include "form.priv.h" -MODULE_ID("$Id: fld_newftyp.c,v 1.2 1998/02/11 12:13:44 tom Exp $") +MODULE_ID("$Id: fld_newftyp.c,v 1.5 1999/05/16 17:18:54 juergen Exp $") static FIELDTYPE const default_fieldtype = { 0, /* status */ @@ -71,7 +71,7 @@ FIELDTYPE *new_fieldtype( { FIELDTYPE *nftyp = (FIELDTYPE *)0; - if ( (field_check) && (char_check) ) + if ( (field_check) || (char_check) ) { nftyp = (FIELDTYPE *)malloc(sizeof(FIELDTYPE)); if (nftyp)