Fix assertion failure with a state variable

This commit is contained in:
Daniel_Cortez 2019-09-29 13:42:04 +07:00
parent 2f642899f1
commit 14228a1cea

View File

@ -2078,7 +2078,7 @@ static void declglb(char *firstname,int firsttag,int fpublic,int fstatic,int fst
*/
assert(sym==NULL
|| sym->states==NULL && sc_curstates==0
|| sym->states!=NULL && sym->next!=NULL && sym->states->first->index==sc_curstates);
|| sym->states!=NULL && sym->states->first!=NULL && sym->states->first->index==sc_curstates);
/* a state variable may only have a single id in its list (so either this
* variable has no states, or it has a single list)
*/