Merge pull request #453 from Daniel-Cortez/statevar-assertion-fix

Fix assertion failure whence the script contains a single state variable
This commit is contained in:
Y-Less 2019-11-07 01:43:08 +01:00 committed by GitHub
commit 4ede5aa24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2077,7 +2077,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)
*/