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,12 +67,10 @@ struct Charmap *charmap_New(const char *name, const char *baseName)
if (baseName != NULL) { if (baseName != NULL) {
struct Charmap **ppBase = charmap_Get(baseName); struct Charmap **ppBase = charmap_Get(baseName);
if (*ppBase == NULL) { if (*ppBase == NULL)
yyerror("Base charmap '%s' doesn't exist", baseName); yyerror("Base charmap '%s' doesn't exist", baseName);
return NULL; else
} pBase = *ppBase;
pBase = *ppBase;
} }
struct Charmap **ppCharmap = charmap_Get(name); struct Charmap **ppCharmap = charmap_Get(name);