add check for null in dbAllocField

This commit is contained in:
Marty Kraimer
1998-06-15 20:55:15 +00:00
parent f4ca56523f
commit 7e68daea68

View File

@@ -2621,6 +2621,10 @@ int epicsShareAPI dbAllocForm(DBENTRY *psave)
}
dbCopyEntryContents(psave,pdbentry);
pflddes = pdbentry->pflddes;
if(!pflddes) {
epicsPrintf("dbAllocForm called but no field is referenced\n");
goto done;
}
if(pflddes->field_type == DBF_DEVICE) {
status = dbFindField(pdbentry,"INP");
if(status) status = dbFindField(pdbentry,"OUT");