Treat 0 as a valid value for some non-MAAT producer.

This commit is contained in:
zhengchao
2018-07-19 20:29:33 +08:00
parent bbee244d23
commit 45f20cccb3
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ int get_valid_flag_offset(const char* line, enum MAAT_TABLE_TYPE type,int valid_
}
}
i++;
if(i>=strlen(line)||line[i]!='1')
if(i>=strlen(line)||(line[i]!='1'&&line[i]!='0'))// 0 is also a valid value for some non-MAAT producer.
{
return -1;
}