1
0
forked from GitHub/gf-core

the parser in the C runtime should not crash if the start category is not defined

This commit is contained in:
kr.angelov
2013-02-19 12:08:48 +00:00
parent f86dcb6572
commit 5a54596fe8

View File

@@ -1976,10 +1976,9 @@ pgf_parser_init_state(PgfConcr* concr, PgfCId cat, size_t lin_idx, GuPool* pool)
{
PgfCncCat* cnccat =
gu_map_get(concr->cnccats, &cat, PgfCncCat*);
if (!cnccat) {
// error ...
gu_impossible();
}
if (!cnccat)
return NULL;
gu_assert(lin_idx < cnccat->n_lins);
PgfParsing* ps =