fix crash if record uses unknown field and has no device support

This commit is contained in:
zimoch committed 2026-11-03 16:18:12 +01:00
1 parent cb45c2b414
commit b42b8dd546
1 file changed
+5
@@ -1336,6 +1336,11 @@ static void dbRecordField(char *name,char *value)
int nChoice;
int choice;
if (!temp.pflddes->ftPvt) {
/* no choices defined: unlikely */
status = S_stdlib_noConversion;
break;
}
if (temp.pflddes->field_type == DBF_MENU) {
dbMenu* menu = (dbMenu*)temp.pflddes->ftPvt;
choices = menu->papChoiceValue;