GH-1555: Fix reading empty set[enum] values from config files

This commit is contained in:
Jon Siwek 2021-05-14 16:32:19 -07:00
parent 09ff24199b
commit e35888a994
3 changed files with 12 additions and 2 deletions

View file

@ -519,7 +519,8 @@ Val* Value::ValueToVal(const std::string& source, const Value* val, bool& have_e
case TYPE_TABLE:
{
TypeListPtr set_index;
if ( val->val.set_val.size == 0 && val->subtype == TYPE_VOID )
if ( val->val.set_val.size == 0 &&
( val->subtype == TYPE_VOID || val->subtype == TYPE_ENUM ) )
// don't know type - unspecified table.
set_index = make_intrusive<TypeList>();
else