mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
the parser in the C runtime should not crash if the start category is not defined
This commit is contained in:
@@ -1976,10 +1976,9 @@ pgf_parser_init_state(PgfConcr* concr, PgfCId cat, size_t lin_idx, GuPool* pool)
|
|||||||
{
|
{
|
||||||
PgfCncCat* cnccat =
|
PgfCncCat* cnccat =
|
||||||
gu_map_get(concr->cnccats, &cat, PgfCncCat*);
|
gu_map_get(concr->cnccats, &cat, PgfCncCat*);
|
||||||
if (!cnccat) {
|
if (!cnccat)
|
||||||
// error ...
|
return NULL;
|
||||||
gu_impossible();
|
|
||||||
}
|
|
||||||
gu_assert(lin_idx < cnccat->n_lins);
|
gu_assert(lin_idx < cnccat->n_lins);
|
||||||
|
|
||||||
PgfParsing* ps =
|
PgfParsing* ps =
|
||||||
|
|||||||
Reference in New Issue
Block a user