Allow charmap creation even if its base doesn't exist

This commit is contained in:
ISSOtm
2020-03-15 00:40:45 +01:00
parent 2f16e82cf7
commit af60e7f74a

View File

@@ -67,11 +67,9 @@ struct Charmap *charmap_New(const char *name, const char *baseName)
if (baseName != NULL) {
struct Charmap **ppBase = charmap_Get(baseName);
if (*ppBase == NULL) {
if (*ppBase == NULL)
yyerror("Base charmap '%s' doesn't exist", baseName);
return NULL;
}
else
pBase = *ppBase;
}