Allow INP/OUT to be set if DSET is NULL.

This commit is contained in:
Andrew Johnson
2009-06-15 20:52:36 +00:00
parent f32394e795
commit 3c19da6b3b

View File

@@ -1176,8 +1176,8 @@ static long dbPutFieldLink(DBADDR *paddr,
if (new_dsxt == NULL ||
new_dsxt->add_record == NULL ||
old_dsxt == NULL ||
old_dsxt->del_record == NULL) {
(precord->dset && old_dsxt == NULL) ||
(old_dsxt && old_dsxt->del_record == NULL)) {
status = S_db_noSupport;
goto unlock;
}
@@ -1187,9 +1187,11 @@ static long dbPutFieldLink(DBADDR *paddr,
precord->scan = menuScanPassive;
}
status = old_dsxt->del_record(precord);
if (status)
goto restoreScan;
if (old_dsxt) {
status = old_dsxt->del_record(precord);
if (status)
goto restoreScan;
}
}
switch (plink->type) { /* Old link type */