1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Fixed error handling for missing names in ld65 configure files.

This commit is contained in:
Greg King 2019-10-12 07:59:49 -04:00
parent e660a49347
commit 4f24a06f0e

View File

@ -490,7 +490,6 @@ void CfgSpecialToken (const IdentTok* Table, unsigned Size, const char* Name)
/* We need an identifier */
if (CfgTok == CFGTOK_IDENT) {
/* Make it upper case */
SB_ToUpper (&CfgSVal);
@ -502,10 +501,13 @@ void CfgSpecialToken (const IdentTok* Table, unsigned Size, const char* Name)
}
}
/* Not found */
CfgError (&CfgErrorPos, "%s expected, got '%s'", Name, SB_GetConstBuf(&CfgSVal));
return;
}
/* Not found or no identifier */
CfgError (&CfgErrorPos, "%s expected, got '%s'", Name, SB_GetConstBuf(&CfgSVal));
/* No identifier */
CfgError (&CfgErrorPos, "%s expected", Name);
}