Do not match unknown gal

This commit is contained in:
rhgndf 2023-09-16 15:08:15 +08:00
parent cd410666f0
commit 4145612445
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static int8_t verifyArgs(char* type) {
printf("Error: missing GAL type. Use -t <type> to specify.\n");
return -1;
} else if (0 != type) {
for (int i = 0; i < sizeof(galinfo) / sizeof(galinfo[0]); i++) {
for (int i = 1; i < sizeof(galinfo) / sizeof(galinfo[0]); i++) {
if (strcmp(type, galinfo[i].name) == 0) {
gal = galinfo[i].type;
break;